code: def loadmat(filename):
      
      data = sploadmat(filename, struct_as_record=False, squeeze_me=True)
      return _check_keys(data)
docs: This function should be called instead of direct spio.loadmat
      as it cures the problem of not properly recovering python dictionaries
      from mat files. It calls the function check keys to cure all entries
      which are still mat-objects