'Convert command for kwargs (assumes a properly formed command).'

def _cmd_to_dict(self, arg_list):

    ret = {'cmd': arg_list[0], 'type': arg_list[1], 'path': arg_list[(-1)]}
    for i in range(2, (len(arg_list) - 1)):
        arg = arg_list[i].split('=')
        if (len(arg) == 1):
            ret[arg[0]] = True
        else:
            ret[arg[0]] = arg[1]
    return ret
