updated python compilation script