made print statement in probability:1787 python 3.x compatible