fixed syntax errors in views.py createPath