title: How to match only particular events with Python watchdog
body: <p>I'm intending to use Python watchdog to handle a directory where files are written to, 
  and I'm only interested in image files, trouble is I dont quite grok the code at <a href="http://pythonhosted.org/watchdog/api.html" rel="nofollow">this page</a>. 
  This is my attempt:</p>
  
  <pre><code>from watchdog.observers import Observer
  from watchdog.events import PatternMatchingEventHandler
  
  class Beat(PatternMatchingEventHandler):
       def on_create(self,event):
               print event.src_path
  
  if __name__ == "__main__":
      patt = ['\w+[.]jpeg']
      event_handler = Beat(patterns=patt,ignore_directories=True,) 
      observer = Observer()
      path = "./"
      observer.schedule(event_handler, path, recursive=True)
      observer.start()
  </code></pre>
  
  <p>I'm trying to use the pattern matching class, but I'm getting nothing. How is it supposed to be used?</p>