Python Replace By Regexp Substr Teradata