Simplified the main.py script

Stripped page layout variable into page.py for ease of editing and
uncomplicated the main.py script