req = urllib.request.Request('http://www.python.org/')
req.headers['Range'] = 'bytes=%s-%s' % (18000, 19000)
f = urllib.request.urlopen(req)
range = f.headers.get('Content-Range')
Download file using urllib in Python with the wget -c feature