python program to view files using (n)curses