util/gen_xmlpool: use argparse for argument handling