Python code

for prediction part