def repeat_read_url_request(url, headers=None, data=None, retries=<NUM_LIT:2>, logger=None):
if logger:<EOL><INDENT>logger.debug("<STR_LIT>".format(url))<EOL><DEDENT>req = urllib2.Request(url, data, headers=headers or {})<EOL>return repeat_call(lambda: urllib2.urlopen(req).read(), retries)<EOL>
Allows for repeated http requests up to retries additional times