Remove unused socket import in views.py