mysql python rename and remove files; args, intermediate