Pep8 fixes and replaced render_to_response
Fixed imports
Use render
Modified StudentApi
Fixed error in checking the condition
Commented unused url