Python Replace Two Things