title: How to check if a file is checked out (Clearcase / Python)
body: <p>I guess the title sufficiently sums up my question. I have working code to automatically check out a file: </p>
  
  <pre><code> p = Popen(['cleartool', 'co', pathname], stdin = PIPE)
   p.communicate('comment for checkout')
  </code></pre>
  
  <p>I'm wondering how to check if the file is already checked out before executing this. Thanks in advance everyone!</p>