use proper argparse instead of sys.argv (issue #2)