mysql python intermediate, cp and rename