def set_attributes(self, session_key, attributes):
session = self._lookup_required_session(session_key)<EOL>session.set_attributes(attributes)<EOL>self.session_handler.on_change(session)<EOL>
:type attributes: dict