Checks __attrs__ on session instance prior to iterating.
Adds __attrs__ back to Session object
Merge pull request #1223 from andrewjesaitis/master

Fixes __getstate__ for session pickling