<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(self, attr, default=None):
 """Get an attribute defined by this session"""


        attrs = self.body.get('attributes') or {}
        return attrs.get(attr, default)