fixed cleaning of guess_env and guess_python snippets