getattr
Return the value of the named attribute of object. name must be a string.
getattr(object, name, default=None)
name
The name of the attribute.
default
The default value if the attribute is not found.
Examples
>>> getattr('hello', 'upper')
'HELLO'