remove codeigniter related session handler, fix some pep8