title: Can't unzip zip file
body: <p>I'm trying to unzip a zip file inside my script using Python's <code>zipfile</code> module. The problem is that when I try to unzip this file, it raises <code>Bad magic number for file header error</code>:</p>
  
  <p>This is the <code>error</code>:</p>
  
  <pre><code>..
    zip_ref.extractall(destination_to_unzip_file)
    File "C:\Python27\lib\zipfile.py", line 1040, in extractall
      self.extract(zipinfo, path, pwd)
    File "C:\Python27\lib\zipfile.py", line 1028, in extract
      return self._extract_member(member, path, pwd)
    File "C:\Python27\lib\zipfile.py", line 1082, in _extract_member
      with self.open(member, pwd=pwd) as source, \
    File "C:\Python27\lib\zipfile.py", line 971, in open
      raise BadZipfile("Bad magic number for file header")
  zipfile.BadZipfile: Bad magic number for file header
  </code></pre>
  
  <p>The file I want to unzip is downloaded this way:</p>
  
  <pre><code>_url = """http://edane.drsr.sk/report/ds_dphs_csv.zip"""
  
  def download_platici_dph(self):
      if os.path.isfile(_destination_for_downloads+'platici_dph.zip'):
          os.remove(_destination_for_downloads+'platici_dph.zip')
      with open(_destination_for_downloads+'platici_dph.zip','w') as f:
          response = requests.get(_url,stream=True)
          if not response.ok:
              print 'Something went wrong'
              return False
          else:
              for block in response.iter_content(1024):
                  f.write(block)
  </code></pre>
  
  <p>Do anybody knows where is the problem?</p>