Reversing User Input In Python Script