Python Regex Find Repeating Pattern Definition