code: def get_list(self, datatype, url, **kwargs):
          
          search_url = [url, '?']
          kwargs.update({'key': self.api_key})
          search_url.append(urlencode(kwargs))
          data = json.loads(urlopen(''.join(search_url)).read())
          return data[datatype]
docs: base function for connecting to API