Python Replace String Using Sed For Find