new python 3 support for authentication