use python logging module for messages instead of print()

Good idea. I have this annoying tendency of getting caught up in one way of doing things.