def key_value_arg_type(arg):
    """Simple validate/transform function to use in argparse as a 'type' for an
    argument where the argument is of the form 'key=value'."""
    k, v = arg.split("=", 1)
    return (k, v)