title: Using ExtractMsg in a loop?
body: <p>I am trying to write a script that will extract details from Outlook .msg files and append then to a .csv file. ExtractMsg (<a href="https://github.com/mattgwwalker/msg-extractor" rel="nofollow">https://github.com/mattgwwalker/msg-extractor</a>) will process the messages one at a time, at the command line with 'python ExtractMsg.py message' but I can't work out how to use this to loop through all the messages in the directory. </p>
  
  <p>I have tried: </p>
  
  <pre><code>import ExtractMsg
  import glob
  for message in glob.glob('*.msg'):
      print 'Reading', message
      ExtractMsg(message)
  </code></pre>
  
  <p>This gives "'module' object is not callable". I have tried to look at the  ExtractMsg module but the structure of it is beyond me at the moment. How can I make the module callable? </p>