def int_arg(x):
    """Argument type to be used in parser.add_argument()
    When an integer type value is expected to be given
    (returns 0 if argument is invalid, hexa accepted)
    """
    return int(x, 0)