Added logging via logging module, and removed print >> statements

This involves replacement of various print statements, incorporation of
the logging module and a new command-line option. Internally, it also
required the removal of a number of 'verbose' arguments to functions.
Added tests for presence of Python module dependencies.