import os
import json
#curl 'https://app.pendo.io/api/s/<subscription>/guide?includeArchived=true' -H 'accept: application/json, text/plain, */*'  -H 'cookie: pendo.sess=<sessionid>'  > /tmp/guide.json

guides = json.load(open('/tmp/guide.json', 'rb'))
for guide in guides:
    #if guide['state'] == u'staged':
    if "Pendo" in guide['name']:
        path = guide['id']
        if not os.path.exists(path):
            os.makedirs(path)
        for step in guide['steps']:
            stepId = step['id']
            content = step.pop('content')
            with open(os.path.join(path, "%s.meta" % stepId), 'w') as temp_file:
                temp_file.write(json.dumps(step))
            with open(os.path.join(path, "%s.content" % stepId), 'w') as temp_file:
                temp_file.write(content.encode('utf8'))
            

@@ -1,12 +1,24 @@
+import sys%0A%0A
 import os%0Aim
@@ -258,16 +258,40 @@
  'rb'))%0A
+%0AguideId = sys.argv%5B1%5D%0A%0A
 for guid
@@ -344,16 +344,17 @@
 d':%0A    
+#
 if %22Pend
@@ -370,24 +370,55 @@
 de%5B'name'%5D:%0A
+    if guide%5B'id'%5D == guideId:%0A
         path

modify checkout to only checkout single guideId, missing any error checking.