Login doesn't work

I pulled master and had to modify the login method to make it work:

yours:
response = _request('/login', headers={
        'Authorization': 'Basic %s' % base64.b64encode(six.b(auth_hash))[:-1]

Mine:
response = _request('/login', headers={
        'Authorization': 'Basic %s' % base64.encodestring(auth_hash).replace('\n', '')