Modified session to inherit from dict