Remove urlresolver monkey patch and use Django's resolve function
PEP8 cleanups