Python (3.x) implementation of the Cocke-Younger-Kasami parsing algorithm