title: Adding dynamic property to a python object
body: <pre><code>site = object()
  mydict = {'name': 'My Site', 'location': 'Zhengjiang'}
  for key, value in mydict.iteritems():
      setattr(site, key, value)
  print site.a  # it doesn't work
  </code></pre>
  
  <p>The above code didn't work. Any suggestion?</p>