Fix for Django test runner