changed to MIT license; moved argparse to function
changed syntax for version check
trivial pep8 fixes
replaced nasty-looking string write with a more elegant solution
fixed write syntax from numpy array -> list
more pep8 compatibility
PEP8 compliant; removed depreciated dict.has_keys()
updated header comments