Add checks for custom pagers, and a few more Home/End key fixes.
Remove .pyc files.