import copy


def remove_whitespace(dictionary):
    """ Remove values that empty whitespace in the dictionary """
    nd = copy.deepcopy(dictionary)
    bad_keys = []
    for k,v in nd.iteritems():
        if hasattr(v,'strip'):
            stripped = v.strip()
            # ghetto and maybe unnecessary
            if stripped == '' or stripped == u'': bad_keys.append(k)
    for bad_key in bad_keys: del nd[bad_key]
    return nd