title: Setting a password with python's zipfile module
body: <p>When using the python module <code>zipfile</code>, for some reason I don't know I can't set a password for an archive created.</p>
  
  <p>When trying to unzip following empty zip archive, I can do so without prompting a password..</p>
  
  <p>Here is my code, what's wrong?</p>
  
  <pre><code>import zipfile  
  with zipfile.ZipFile("1.zip","w") as zip:
      zip.setpassword("1234")
  </code></pre>