Python Replace String Using Sed