'Create a temporary export dir - and clean it up when done.'

@contextmanager
def _create_export_dir(self):

    try:
        export_dir = mkdtemp()
        (yield export_dir)
    finally:
        rmtree(export_dir, ignore_errors=True)
