makes this a real module
prevents this from failing when termcolor is not available
Add the EM algorithm for context-free derivations