move logging.basicConfig() call into init(), and make it configurable.