Logger.warning is deprecated
Py3 fixes