Fix profile tests' warning if no postmap binary
Add a more descriptive comment on test
Remove minor format errors
Fix pep8 errors except some lines and use json not simplejson
Modify syntax of if statements re: sql and raw sql
Merge pull request #1466 from willingc/test-postmap

Fix profile tests' warnings if postmap binary not installed