title: python getattr() with multiple params
body: <p>Construction <code>getattr(obj, 'attr1.attr2', None)</code> does not work.
  What are the best practices to replace this construction?
  Divide that into two getattr statements?</p>