Fix python for snippet