Updated download method to write fetched file, did not work with Python 2.6.5 + Django 1.5