title: Create an anonymous class instance in python
body: <p>Sometimes i need to create an anonymous class instance in python, just like c#:</p>
  
  <pre><code>var o= new {attr1="somehing", attr2=344};
  </code></pre>
  
  <p>but in python i do it in this way:</p>
  
  <pre><code>class Dummy: pass
  o = Dummy()
  o.attr1 = 'something'
  o.attr2 = 344
  #EDIT 1
  print o.attr1, o.attr2
  </code></pre>
  
  <p>how can do that in pythonic way in single statement?</p>