parser.py: Fix JGP parser for new JGP format.

Signed-off-by: Martin Stone <martin@d7415.co.uk>