removed temp-dir config, use tempfile.mkdtemp instead