Python Replace String In File Regex