I couldn't understand what you want to say here: ``This should be in an else with the below filename``
Well ``'output'`` defaults to ``None`` in dumpdata.py