Function to recursively get an attribute.
obj (object) – An object
attr_list (list) – A list of strings that is the attribute ‘tree’
attr – An attribute
attribute