'return only params kwargs that are for cmd
and rename them to a clean version (remove "<cmd>_")
args are shared across all cmds
all args and kwarks are lowerd
cmd are separated by "|" e.g. &cmd=shows|future
kwargs are namespaced with "." e.g. show.indexerid=101501
if a karg has no namespace asing it anyways (global)
full e.g.
/api?apikey=1234&cmd=show.seasonlist_asd|show.seasonlist_2&show.seasonlist_asd.indexerid=101501&show.seasonlist_2.indexerid=79488&sort=asc
two calls of show.seasonlist
one has the index "asd" the other one "2"
the "indexerid" kwargs / params have the indexed cmd as a namspace
and the kwarg / param "sort" is a used as a global'

def filter_params(self, cmd, *args, **kwargs):

    curArgs = []
    for arg in (args[1:] or []):
        try:
            curArgs += [arg.lower()]
        except:
            continue
    curKwargs = {}
    for kwarg in (kwargs or []):
        try:
            if (kwarg.find((cmd + u'.')) == 0):
                cleanKey = kwarg.rpartition(u'.')[2]
                curKwargs[cleanKey] = kwargs[kwarg].lower()
            elif (not (u'.' in kwarg)):
                curKwargs[kwarg] = kwargs[kwarg]
        except:
            continue
    return (curArgs, curKwargs)
