def _correct_args ( func , kwargs ) : args = inspect . getargspec ( func ) [ 0 ] return [ kwargs [ arg ] for arg in args ] + kwargs [ '__args' ]
python unpack dictionary to function args
Convert a dictionary of arguments including __argv into a list for passing to the function .
def _correct_args(func, kwargs):
    """
        Convert a dictionary of arguments including __argv into a list
        for passing to the function.
    """
    args = inspect.getargspec(func)[0]
    return [kwargs[arg] for arg in args] + kwargs['__args']