A simple interactive CYK parser in Python