lat = [(float(x) / float(y)) for x, y in a['GPSInfo'][2]]
latref = a['GPSInfo'][1]
lon = [(float(x) / float(y)) for x, y in a['GPSInfo'][4]]
lonref = a['GPSInfo'][3]
lat = lat[0] + lat[1] / 60 + lat[2] / 3600
lon = lon[0] + lon[1] / 60 + lon[2] / 3600
if latref == 'S':
    lat = -lat
if lonref == 'W':
    lon = -lon
Перевод Exif DMS в геолокацию DD с помощью Python