pybids is actually really slow, especially on large datasets. bids2table is apparently faster according to benchmarks: https://github.com/cmi-dair/bids2table