This commit fixes the following flake8 issues:
F821 undefined name 'name'
F841 local variable 'name' is assigned to but never used
It also silences the false-positives caused by parser.py and
tokenizer.py.
Change-Id: Icdc42f47f5f1f383054d8dfdeed6509fc478637b