fix python script