[mod][fix] cookie expiration ++ pep8 compatibility
[fix] remove unused imports ++ pep8