Only generate pages if create_page.py is called directly

-   This will prevent pages getting generated if someone
    imports create pages for any reason.