Product of digits of a number in python