code: def repeat_read_url_request(url, headers=None, data=None, retries=2, logger=None):
      '''
      Allows for repeated http requests up to retries additional times
      '''
      if logger:
          logger.debug("Retrieving url content: {}".format(url))
      req = urllib2.Request(url, data, headers=headers or {})
      return repeat_call(lambda: urllib2.urlopen(req).read(), retriesf repeat_read_url_request(url, headers=None, data=None, retries=2, logger=None):
      '''
      Allows for repeated http requests up to retries additional times
      '''
      if logger:
          logger.debug("Retrieving url content: {}".format(url))
      req = urllib2.Request(url, data, headers=headers or {})
      return repeat_call(lambda: urllib2.urlopen(req).read(), retries)
docs: Allows for repeated http requests up to retries additional times