Get the compliance level of the output file.

def get_compliance(self, filename):
    """Get the compliance level of the output file."""
    print('Running Compliance Check on {}'.format(filename))
    print('#' * 80)
    start_time, status, dt, qual, target = mlp_compliance.l2_check_file_w_starttime(
        filename)
    print('#' * 80)

    if status:
      level = '2'
    else:
      start_time, status, dt, qual, target = mlp_compliance.l1_check_file_w_starttime(
          filename)
      print('#' * 80)
      if status:
        level = '1'
      else:
        level = '0'

    success = status and qual and target and qual >= target
    return start_time, level, dt, qual, success