Use argparse for argument options

I've replaced my temporary code lines that handeled
the parsing of command line arguments and used
argparse module instead.