fixed auth for python 3