diff --git a/studio/lib/archivefile.py b/studio/lib/archivefile.py
index <HASH>..<HASH> 100644
--- a/studio/lib/archivefile.py
+++ b/studio/lib/archivefile.py
@@ -52,5 +52,4 @@ def extractall(archive, filename, dstdir):
         tar.extractall(path=dstdir)
     else:
         # seems to be a single file, save it
-        shutil.copyfile(archive,
-                        file(os.path.join(dstdir, filename), 'wb'))
+        shutil.copyfile(archive, os.path.join(dstdir, filename))
shutil.copyfile does take a filename as the destination file to be written instead of a file object