fixed run_shell and pep