First pass at parse.js port to parse.pyj