fix python compile