fix python problems