'Get the authenticated user\'s info from the API.'

def get_user_self_info(self, sess):

    r = self.api_get(self.api_user_self_info_path, sess=sess)
    info = self.extract_user_info(self.api_parser(r))
    token = getattr(sess, u'token', None)
    if token:
        info.token = json.dumps(token)
    return info
