def filter_none_args(args):
    """Filter a dictionary and only return items where the value is not None
    A StringConstant with a value of None is also counted as an empty value"""
    return {k: v for k, v in args.items() if v is not None}