def is_finished(output):
  """
    A 'complete' line of output ends with a well-formed Python list.
    Just check for the last character of the list.
    @returns Boolean
  """
  return output.endswith("]")