Interactive shell done by changing sys.stdin and then using history through readline
Updated for 0.2.1