Change debug messages in modules from print to stderr to log using the
logging module.  See the section 'Debugging and Logging' in
pan.wfapi.rst and pan.xapi.rst for an example of configuring the
logging module to enable debug output.

IMPORTANT NOTE: the debug argument has been removed from the
constructors, so programs using them must be modified.