title: chmod 777 to python script
body: <p>Trying to translate linux cmd to python script </p>
  
  <p>Linux cmds:</p>
  
  <pre><code>chmod 777 file1 file1/tmp file2 file2/tmp file3 file3/tmp
  </code></pre>
  
  <p>I know of <code>os.chmod(file, 0777)</code> but I'm not sure how to use it for the above line. </p>