reverse digits of number python