refactor: remove old Log and use python logging.  remove global variable