fix python platform