Fixed typo in exit statement
Fixed shebang.  Fixed print statements to be python 3 compatibile.  Moved fh.close to finally block
Fixed shebang.  Fixed print statements to be python 3 compatibile.  Moved fh.close to finally block
Fixed print statements to be python 3 compatibile.  Moved fh.close to finally block
Removed argv.pop
Switched some fields to enum and improved parameter description
Fixed shebang and print statement