import six


def _get_query_dict(**kwargs):
    """Returns query dict by kwargs.
    Skip None-values, but keeps False etc.
    >>> res = _get_query_dict(url=None, test='a', page=True, full=False)
    >>> res == {'test': 'a', 'page': True, 'full': False}
    True
    """
    def __get_quey_dict(**kwargs):
        for k, v in six.iteritems(kwargs):
            if v is not None:
                yield k, v
    return dict(__get_quey_dict(**kwargs))