fix pythonsnippet