Law parties extractor for osp: writing parties to separate files