import six


def get_kwargs(kwargs):
    """Get all keys and values from dictionary where key is not `self`.

    :param dict kwargs: Input parameters
    """
    return {
        key: value for key, value in six.iteritems(kwargs)
        if key != 'self'
    }