Returns OrderedDict whose keys are self.attrs

def to_dict(self):
        """Returns OrderedDict whose keys are self.attrs"""
        ret = OrderedDict()
        for attrname in self.attrs:
            ret[attrname] = self.__getattribute__(attrname)
        return ret