PEP8ified and update urls import for django 1.6