title: How to mount a network directory using python?
body: <p>I need to mount a directory "dir" on a network machine "data" using python on a linux machine</p>
  
  <p>I know that I can send the command via command line:</p>
  
  <pre><code>mkdir ~/mnt/data_dir
  mount -t data:/dir/ ~/mnt/data_dir
  </code></pre>
  
  <p>but how would I send those commands from a python script?</p>