By checking pyflakes removed datetime and paginator as they were unused from views.py