reverse a number in python