Added whitespace around operators and commas

Fixes pep8 errors E225, E227, E228, and E231.

There remains a single error, in lib/meta.py, but I left that untouched
out of fear of breaking something.