Use namespaces when referencing python packages. Also, as per https://review.opendev.org/#/c/527320/, replace all references to django.core.urlresolves with django.urls. Change-Id: I6460d0734aa11ffa44f259baa7155d2a202f7162