python snapshot