how to reverse a number in python