Fixed little nasty bug in api.py so no HttpResponseRedirect is needed

Instead of importing HttpResponseRedirect I applied the observed pattern :)