Get attribute as accessor rather than getattr