[python] Python - Locating the position of a regex match in a string?