use python logging module for messages instead of print()