twee2sam: replace getopt with 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.
twee2sam: replace open() with `with` blocks

`with` blocks automatically close any opened files they receive at the
end of the block, so this is a little safer than manually closing files
as well as more concise.