def remove_nones_from_dict(orig_dict):
    """Returns a copy of a dictionary with any none values removed"""
    d = {}
    for k, v in orig_dict.items():
        if isinstance(v, dict):
            d[k] = remove_nones_from_dict(v)
        else:
            if v is not None:
                d[k] = v
    return d