Python Replace Two Piece