More robust urlpatterns importing

Fixes #6