diff --git a/.gitignore b/.gitignore
index 10c407378bac4de0815304ebfcedfd7afff87b15..db13625127cecd935b214ac1d47863022fa9bb40 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,8 @@
 *.zip
 *.swp
 __pycache__/
-
 *.egg-info/
+build/
+dist/
+deploy.sh
+
diff --git a/hektor.py b/hektor.py
index 209b1f2ce6fc3bf47a1cf469c687c96064fdc5b1..058f9fe5cca315f527c6e5edddd0523dc2524019 100644
--- a/hektor.py
+++ b/hektor.py
@@ -133,8 +133,7 @@ def eat_zipfile(input_file, output):
 
     structured_data = give_me_structure(data)
 
-    with open(output, 'w') as out:
-        json.dump(structured_data, out, indent=2, sort_keys=True)
+    json.dump(structured_data, output, indent=2, sort_keys=True)
 
 
 def parseme():
@@ -147,6 +146,7 @@ def parseme():
         '-o',
         '--output',
         default=sys.stdout,
+        type=argparse.FileType('w'),
         metavar='FILE',
         help='Where you want to put the output')
     return parser.parse_args()
diff --git a/setup.py b/setup.py
index 60009f2d208f134bea2481720bcb5210fd954b1d..d58f01fee4516070bb045db35e71037210418f77 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
 
 setup(
     name='hektor',
-    version='0.1',
+    version='0.1.1',
     description='A QTI-XML to JSON converter for humans',
     author='Jan Maximilian Michal',
     author_email='mail@janmax.org',