mysql python rename and remove files; rename