add python prediction part