Fix getattr

Exports getattr and fixes a dict bug