code: def search(term, country='US', media='all', entity=None, attribute=None, limit=50):
      
      search_url = _url_search_builder(term, country, media, entity, attribute, limit)
      r = requests.get(search_url)
  
      try:
          json = r.json()['results']
          result_count = r.json()['resultCount']
      except:
          raise ConnectionError(general_no_connection)
  
      if result_count == 0:
          raise LookupError(search_error + str(term))
  
      return _get_result_list(json)
docs: Returns the result of the search of the specified term in an array of result_item(s)
      :param term: String. The URL-encoded text string you want to search for. Example: Steven Wilson.
                   The method will take care of spaces so you don't have to.
      :param country: String. The two-letter country code for the store you want to search.
                      For a full list of the codes: http://en.wikipedia.org/wiki/%20ISO_3166-1_alpha-2
      :param media: String. The media type you want to search for. Example: music
      :param entity: String. The type of results you want returned, relative to the specified media type. Example: musicArtist.
                     Full list: musicArtist, musicTrack, album, musicVideo, mix, song
      :param attribute: String. The attribute you want to search for in the stores, relative to the specified media type.
      :param limit: Integer. The number of search results you want the iTunes Store to return.
      :return: An array of result_item(s)