reverse integer in Python without strings