docs: def clean(matrix):
      """Return a copy of given matrix where keys associated
      to space values are discarded"""
      return defaultdict(lambda: ' ', {
          k: v for k, v in matrix.items() if v != ' '
      })