Chart Parser (in Java and Python)