Fix up examples
Cleanup table.py for pep8 compliance