Demo python code to reverse input text