remove a ton of unused imports

I did this on the off chance that it would improve the startup time of management commands. Not surprisingly, it didn't.

these aren't all of them, just the worst offenders from
```bash
pyflakes . | grep 'imported but unused' | cut -d':' -f1 | uniq -c | sort -n | grep -v '\./submodules'
```