docs: def process_amendments(congress):
      """
      Traverse amendments for a project
      """
      amend_dir = "{0}/{1}/amendments".format(congress['src'],
                                              congress['congress'])
      logger.info("Processing Amendments for {0}".format(congress['congress']))
  
      amendments = []
  
      for root, dirs, files in os.walk(amend_dir):
          if "data.json" in files and "text-versions" not in root:
              file_path = "{0}/data.json".format(root)
              logger.debug("Processing {0}".format(file_path))
              a = json.loads(open(file_path, 'r').read())
              amendment = []
  
              amendment.append(a['amendment_id'])
              amendment.append(a['amendment_type'])
              if a['amends_amendment']:
                  amendment.append(a['amends_amendment'].get('amendment_id',
                                                             None))
              else:
                  amendment.append(None)
              if a['amends_bill']:
                  amendment.append(a['amends_bill'].get('bill_id', None))
              else:
                  amendment.append(None)
              if a['amends_treaty']:
                  amendment.append(a['amends_treaty'].get('treaty_id', None))
              else:
                  amendment.append(None)
              amendment.append(a['chamber'])
              amendment.append(a['congress'])
              amendment.append(a['description'])
              amendment.append(a['introduced_at'])
              amendment.append(a['number'])
              amendment.append(a.get('proposed_at', None))
              amendment.append(a['purpose'])
              amendment.append(a['sponsor'].get('thomas_id', None))
              amendment.append(a['sponsor'].get('committee_id', None))
              amendment.append(a['sponsor']['type'])
              amendment.append(a['status'])
              amendment.append(a['updated_at'])
  
              amendments.append(amendment)
  
      return amendments if amendments else [[None] * 17]