Merge pull request #6 from rob-b/master

Use psql --command instead of parsing stdout
PEP8 compliance