Reverse Array In Python User Input Function