Added lib.py and pages.py.