[python] How do I return a string from a regex match in python?