Python предупреждает против предупреждения logging.warn has been deprecated since Python 3.3 and you should use logging.warning.