clear up python snippets