nano clone written in Python and curses