code: def get_dotted(self, key):
          
          parts = key.split('.')
          cobj = self
          for attr in parts:
              cobj = getattr(cobj, attr)
          return cobj
docs: obj = qs.get_dotted('foo.bar.baz')
  
              is equivelent to:
  
                  obj = qs.foo.bar.baz