Fixed urls.py and views.py

Fixed some typos, syntax errors and imports