add hacky importer run script

This can (sometimes) be run as python manage.py shell <
importer-run.py
fix importer script exception handling being exeedingly stupid
work around python interpreter being stupid when given files on stdin