Fix regex_python passing attributes