make session package more PEP8 friendly