Python Regex Replace Text Generator