remove unused code
Use pager to get the user input.

https://bitbucket.org/techtonik/python-pager/src/tip/pager.py