docs: def get_resources(self):
          """
          Gets a JSON mapping of server-side resource names to paths
          :rtype dict
          """
          status, _, body = self._request('GET', '/',
                                          {'Accept': 'application/json'})
          if status == 200:
              tmp, resources = json.loads(bytes_to_str(body)), {}
              for k in tmp:
                  # The keys and values returned by json.loads() are unicode,
                  # which will cause problems when passed into httplib later
                  # (expecting bytes both in Python 2.x and 3.x).
                  # We just encode the resource paths into bytes, with an
                  # encoding consistent with what the resources module expects.
                  resources[k] = tmp[k].encode('utf-8')
              return resources
          else:
              return {}