We should probably start using python's default logging library soon (https://docs.python.org/3/howto/logging.html) to produce cleaner logs.