def _get_value(obj):
    """ 
    Determines if input object is broadcast variable.
    If so return value attribute, else return object.
    """
    return obj.value if hasattr(obj, "value") else obj