Fix dashboard tests and pep8

parse_modules_from_session no longer exists