Cleanup genstatic.py a bit

PEP8:
- Function names
- Four-space vs two-space

Code cleanup:
- Eliminated (useless?) `return True` from generate_static_page
- Switched for loop to use `.items()` instead of `.keys()`
- Use exceptions to check for page generation success