So I go into my python virtual environment and the arrow keys, instead of doing what they're supposed to be doing, are creating these things:^[[D^[[C
It actually happend outside a virtual environment as well, but I fixed it there. Still doesn't work int the virutalenv though.
A bit of googling & stack overflow searching found that it has to do with the fact that upgrading to OSX 10.12 (Sierra) seems to have messed up python's readline. These answers showed me how to fix it outside the virtualenv (which worked):
Arrow keys no longer work in Python shell after upgrading Mac OS to Sierra
ipython complaining about readline
However it still doesn't work inside the virtualenv. I tried pip installing readline and easy_installing readline, but none of it worked.
Thanks in advance for your help.