fix syntax error bug on option parser in rest/index.py

the qparser is not used, I think it should be parser since parser is not defined but used.