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