fixed the issue in models.py by adding urllib