Added argparse support to the client script.

This looks better than the last attempt.
additional empty line here to follow the rest of the code, please