code: def download_experiment(self, experiment_id):
          
          req = self.query_records_no_auth('experiment',
                                           query='download/'+experiment_id)
          if req.status_code == 404:
              print "Sorry, no experiment matching id # " + experiment_id
              print "Please double check the code you obtained on the\
                  http://psiturk.org/ee"
          else:
              # Check if folder with same name already exists.
              expinfo = req.json()
              gitr = requests.get(expinfo['git_url']).json()
              if os.path.exists('./'+gitr['name']):
                  print "*"*20
                  print "Sorry, you already have a file or folder named\
                      "+gitr['name']+". Please rename or delete it before trying\
                      to download this experiment.  You can do this by typing `rm\
                      -rf " + gitr['name'] + "`"
                  print "*"*20
                  return
              if "clone_url" in gitr:
                  git.Git().clone(gitr["clone_url"])
                  print "="*20
                  print "Downloading..."
                  print "Name: " + expinfo['name']
                  print "Downloads: " + str(expinfo['downloads'])
                  print "Keywords: " + expinfo['keywords']
                  print "psiTurk Version: " +\
                      str(expinfo['psiturk_version_string'])
                  print "URL: http://psiturk.org/ee/"+experiment_id
                  print "\n"
                  print "Experiment downloaded into the `" + gitr['name'] + "`\
                      folder of the current directory"
                  print "Type 'cd " + gitr['name'] + "` then run the `psiturk`\
                      command."
                  print "="*20
              else:
                  print "Sorry, experiment not located on github.  You might\
                      contact the author of this experiment.  Experiment NOT\
                      downloaded."
              return
docs: download_experiment: