changes

Figure this should look more like:
```
if instanceof(d, dict):
  return d[key]
else:
  return getattr(d, key)
```
otherwise, things like get(dict('hello': 'world'), 'keys') don't raise an exception.
-Boggs