Python code for trying out dual decomposition for parser and tagger