Simplified pypage.py a bit.