Mostly pep8 cleanups in prep for rewriting of the SQL API.
Merge pull request #65 from jaypipes/object-model

Mostly pep8 cleanups in prep for rewriting of the SQL API.