Restructuring npyscreen for educational reasons