I am calling a method in python recursively where, by default, a raw_input() is shown. Then if I receive a message I want to have the raw_input() shown again - but currently this only occurs AFTER I press the ENTER Key.
Is there a way of forcing the ENTER key to be pressed by the script after receiving a message?
Note: there isn't anything wrong with my recursion as once I press ENTER the raw_input() is shown