Python Replace String Between Two Substrings