Replaced `prune` with `trim`, and made `trim` flatten inputs before processing. Modified `test_openpnm.py` to accommodate these changes