mysql python script