python: add {P}CYK parser library