Python getattr() built-in function

Python getattr() built-in function

From the Python 3 documentation Return the value of the named attribute of object. name must be a string. If the string is the name of one of the object’s attributes, the result is the value of that attribute.