changing mysql subprocess to sh python module