code: def monitor(args):
      ''' Retrieve status of jobs submitted from a given workspace, as a list
          of TSV lines sorted by descending order of job submission date'''
      r = fapi.list_submissions(args.project, args.workspace)
      fapi._check_response_code(r, 200)
      statuses = sorted(r.json(), key=lambda k: k['submissionDate'], reverse=True)
      header = '\t'.join(list(statuses[0].keys()))
      expander = lambda v: '{0}'.format(v)
  
      def expander(thing):
          if isinstance(thing, dict):
              entityType = thing.get("entityType", None)
              if entityType:
                  return "{0}:{1}".format(entityType, thing['entityName'])
          return "{0}".format(thing)
  
      # FIXME: this will generally return different column order between Python 2/3
      return [header] + ['\t'.join( map(expander, v.values())) for v in statusesf monitor(args):
      ''' Retrieve status of jobs submitted from a given workspace, as a list
          of TSV lines sorted by descending order of job submission date'''
      r = fapi.list_submissions(args.project, args.workspace)
      fapi._check_response_code(r, 200)
      statuses = sorted(r.json(), key=lambda k: k['submissionDate'], reverse=True)
      header = '\t'.join(list(statuses[0].keys()))
      expander = lambda v: '{0}'.format(v)
  
      def expander(thing):
          if isinstance(thing, dict):
              entityType = thing.get("entityType", None)
              if entityType:
                  return "{0}:{1}".format(entityType, thing['entityName'])
          return "{0}".format(thing)
  
      # FIXME: this will generally return different column order between Python 2/3
      return [header] + ['\t'.join( map(expander, v.values())) for v in statuses]
docs: Retrieve status of jobs submitted from a given workspace, as a list
          of TSV lines sorted by descending order of job submission date