'return only params kwargs that are for cmd
and rename them to a clean version (remove "<cmd>_")
args are shared across all commands
all args and kwargs are lowered
cmd are separated by "|" e.g. &cmd=shows|future
kwargs are name-spaced with "." e.g. show.indexerid=101501
if a kwarg has no namespace asking 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 namespace
and the kwarg / param "sort" is a used as a global'

@staticmethod
def filter_params(cmd, args, kwargs):

    cur_args = []
    for arg in args:
        cur_args.append(arg.lower())
    cur_args = tuple(cur_args)
    cur_kwargs = {}
    for kwarg in kwargs:
        if (kwarg.find((cmd + u'.')) == 0):
            clean_key = kwarg.rpartition(u'.')[2]
            cur_kwargs[clean_key] = kwargs[kwarg].lower()
        elif (u'.' not in kwarg):
            cur_kwargs[kwarg] = kwargs[kwarg]
    return (cur_args, cur_kwargs)
