Why do you need to use getattr?