more pythonic code, pep8 conformant
Prototype for main page