Auth controller fixes that were broken for python 3