[bug 1004450] Fix circular import in ./manage.py extract