Revert "[#2242] add pep for writing session variable"

This reverts commit 03f5fdc763cb1a91b5a01a0aec6101344ab7077c.

Commit prevented installation from succeeding. Reverting until
@xu-hao finishes update to allow clients to test master branch.