Python curses email program