Creating a VI/EMAC clone in python 2.7 with the curses library