added handler for input() and raw_input()