[python] What is getattr() exactly and how do I use it?