Minor code fixup

Minor code tidy up ofjavalang/parser.py. Removed some unused variable and one unused import.