def convert_gps_degress_to_minutes(lat, lon):
    """
    Convert GPS in degrees to degrees, minutes, seconds as needed for the Exif
    :param lat: Latitude in degrees
    :param lon: Longitude in degrees
    :return: Latitude and longitude in degrees, minutes, seconds
    """
    lat_positive = lat >= 0
    lon_positive = lon >= 0
    lat = abs(lat)
    lat_min, lat_sec = divmod(lat * 3600, 60)
    lat_deg, lat_min = divmod(lat_min, 60)
    lat_dms = ((int(lat_deg), 1), (int(lat_min), 1), (int(lat_sec * 10000), 10000))
    lat_ref = 'N'.encode() if lat_positive else 'S'.encode()
    lon = abs(lon)
    lon_min, lon_sec = divmod(lon * 3600, 60)
    lon_deg, lon_min = divmod(lon_min, 60)
    lon_dms = ((int(lon_deg), 1), (int(lon_min), 1), (int(lon_sec * 10000), 10000))
    lon_ref = 'E'.encode() if lon_positive else 'W'.encode()
    return lat_dms, lat_ref, lon_dms, lon_ref