'Checks that all named arguments are in the specified list of names.
:type kwargs: dict
:param kwargs: Dictionary of kwargs to validate.
:type names: list
:param names: List of possible named arguments.'

def validate_kwarg_names(self, kwargs, names):

    for kwarg in kwargs:
        if (kwarg not in names):
            raise TypeError(('Invalid    argument    "%s"!' % kwarg))
