title: Change directory writable in windows using python
body: <p>In windows, the directories inside the C drive can be changed into writable manually by editing the security attributes of a directory providing full control to the user.
  How this can be done in Python?</p>
  
  <p>My thinking was:</p>
  
  <pre><code>import os, stat
  my_dir = 'C:\\Program Files\\Java'
  os.chmod (my_dir, stat.S_IWRITE)
  </code></pre>
  
  <p>But no success. </p>
  
  <p>Do anyone have idea?</p>