How to convert string to class sub-attribute with Python,"getattr(getattr(getattr(f, 'bar'), 'baz'), 'quux')"