Access dict values as attributes (works recursively)