fixed InteractiveConsole arrow key and histories
http://stackoverflow.com/questions/19754458/open-interactive-python-console-from-a-script