PEP8 django.core

PEP8'd most of `django.core`. I didn't change some things where I was unsure (e.g. unused imports) and sometimes ignored the line length limit, thus following Django's code standard that line length should not be a "strict law" if it helps readability.