Reversing User Input In Python