Python Replace String In File With Regex