Fixed the python logging to respect levels