Support for history when in interactive mode

Hi, I've noticed that when I switched to interactive mode the arrow keys were producing [[A, [[B and so on.

It turns out that there's a simple way of fixing this behaviour by importing the readline module.

It works for me with this import, not sure if it could cause other problems. If you like it feel free to pull this into your repo.

Thanks, awesome tool!