def run(self): # with self.output().open('w') as f: src = "http://api.bitcoincharts.com/v1/csv/coinbaseUSD.csv.gz" testfile = urllib.URLopener() testfile.retrieve(src, self.output())