Returns list containing values of attributes listed in self.attrs

def to_list(self):
        """Returns list containing values of attributes listed in self.attrs"""

        ret = OrderedDict()
        for attrname in self.attrs:
            ret[attrname] = self.__getattribute__(attrname)
        return ret