Add a Python snippet.