use python logging module for messages instead of print()

Ok! How about this: why don't we make the act of changing the logging configuration (via adding a ``--debug`` flag) an act of choosing a different logging configuration file?