Transalation from bash to python of scripts. Added MySql auto support.