def max_modified_date(obj, modified):
    """
    Return the largest modified date
    If the object does not have a date_modified the argument is returned
    :param obj:
    :param modified:
    :return:
    """
    if 'date_modified' not in obj or int(obj['date_modified']) < int(modified):
        return modified
    else:
        return obj['date_modified']