'Miscelaneous utilities from utils module
Usage:
MYNAME command arg'

def utils(self, *arg):

    (command, carg) = normalize_argv(arg, 2)
    cmds = ['int2hexstr', 'list2hexstr', 'str2intlist']
    if ((not command) or (command not in cmds) or (not carg)):
        self._missing_argument()
    func = globals()[command]
    if (command == 'int2hexstr'):
        if (to_int(carg) is None):
            msg('Not    a    number')
            return
        result = func(to_int(carg))
        result = to_hexstr(result)
    if (command == 'list2hexstr'):
        if (to_int(carg) is not None):
            msg('Not    a    list')
            return
        result = func(eval(('%s' % carg)))
        result = to_hexstr(result)
    if (command == 'str2intlist'):
        res = func(carg)
        result = '['
        for v in res:
            result += ('%s,    ' % to_hex(v))
        result = (result.rstrip(',    ') + ']')
    msg(result)
    return
