<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_attr(self, symbol, attrname):
 """ Helper for getting symbol extension attributes """

        return symbol.extension_attributes.get(self.extension_name, {}).get(
            attrname, None)