def convert_datetime_weekday_to_zero_sunday(weekday):
    """
    Python weekday yields values of 0-6 with Mon as 0 and Sun as 6; we want to scale this so Sun is 0 and Sat is 6
    """
    return (weekday + 1) % 7