import six


def remove_empty(d):
    """
        Helper function that removes all keys from a dictionary (d),
        that have an empty value.
    """
    return dict((key, value) for key, value in six.iteritems(d) if value)