Working on python-based parser for latex