Python Replace String Using Sed To Find