Convert print statements to debug() calls, whitespace+import cleanups.

This was done to both ease maintenance and debugging, and because
it will hopefully make it easier to make the code base compatible
with both py2.x and py3.x moving forward.
Merge branch 'master' of github.com:ermo/privateer_wcu