DeprecationWarning: BaseException.message has been deprecated as of Python 2.6

It doesn’t even exist in Python 3. You should probably use “e.args[0]” or something instead. I see there are a couple other instances of “message” already in this file.