fix python support