Update exception usage to modern syntax
py3: picle
py3: Cookie
py3: _thread
py3: iteritems
py3: Use type(None) instead of types.NoneType
Get rid of py24 and jython
Update pbkdf2 module to support py3

see also https://github.com/dlitz/python-pbkdf2
Get rid of 2to3