set python logging level
often using logging.basicConfig is useless because if the logging module is already configured upfront by one of the imported libraries this is ignored.
The solution is to set the level directly in the root logger:
logging.root.level = logging.DEBUG