Add logging and pprint.
Avoid having to print or otherwise str() a Query.