py3/unicode fixes for auth

auth tests should be passing on Python 3