Tests: Add a sanity check that bin/sqlformat parses.
sqlformat: Fix except blocks to be Python 3 and 2.5 compatible.
Compatibility: Avoid "print >>sys.stderr".
Limit explicit UTF-8 encoding to Python < 3.
Merge pull request #87 from pjdelport/bugfix/sqlformat-python3

Fix sqlformat script to be Python 3 compatible.