reverse of a given number in python