title: How to fake type with Python
body: <p>I recently developed a class named <code>DocumentWrapper</code> around some ORM document object in Python to transparently add some features to it without changing its interface in any way.</p>
  
  <p>I just have one issue with this. Let's say I have some <code>User</code> object wrapped in it. Calling <code>isinstance(some_var, User)</code> will return <code>False</code> because <code>some_var</code> indeed is an instance of <code>DocumentWrapper</code>.</p>
  
  <p>Is there any way to fake the type of an object in Python to have the same call return <code>True</code>?</p>