def firstAttr(self, *attrs):
for attr in attrs:<EOL><INDENT>value = self.__dict__.get(attr)<EOL>if value is not None:<EOL><INDENT>return value<EOL><DEDENT><DEDENT>
Return the first attribute in attrs that is not None.