Merge pull request #2 from netantho/master

fix syntax error bug on option parser in rest/index.py
clean up python code