'Extend to manually retry /users/pypy as /teams/pypy.
Bitbucket gives us a 404 where a 30x would be more helpful.'

def api_get(self, path, sess=None, **kw):

    try:
        return PlatformOAuth1.api_get(self, path, sess, **kw)
    except Response as response:
        if ((response.code == 404) and (u'    is    a    team    account' in response.body)):
            assert path.startswith(u'/2.0/users/')
            path = (u'/2.0/teams/' + path[11:])
            return PlatformOAuth1.api_get(self, path, sess, **kw)
        else:
            raise
