title: Cross-platform way to register file type associations with Python
body: <p>Is there a platform-agnostic way to create file type associations with Python?</p>
  
  <p>Looking for something which would provide a simple high-level API for creating and binding MIME types (e.g. <code>application/x-my-custom-type</code>) to file extensions (e.g. <code>*.egg</code>, <code>*.plant</code>), as well as registering/unregistering an app to handle the corresponding mime types.</p>
  
  <p>There is nothing like this in the standard library, so I am looking for a module, or existing wrapper code, in order to avoid handing file associations separately for Linux, OSX, and Windows.</p>