Fix getattr
Merge pull request #47 from timholy/getattr

Fix getattr