py: Implement getattr() builtin.