Improve option parsing (switch to argparse)

This pull request improves the argument parsing by switching from getopt to argparse. argparse's ArgumentParser comes with automatic help text building, checking for mandatory options, and defaults, so it helps simplify the option generation and checking.

PS - thanks for twee2sam! It's a really neat project. :D