Update view.py

partial syntax fixes
Merge pull request #1 from shivanipoddariiith/patch-1

Update view.py