Replace Function In Python With Regexr