def dms_to_dd(dms):
    """Converts EXIF coordinates in (degrees, minutes, seconds) format to
    decimal degrees.

    https://en.wikipedia.org/wiki/Geographic_coordinate_conversion
    """
    d, m, s = [float(dms[i][0]) / float(dms[i][1]) for i in range(3)]
    return d + (m / 60.0) + (s / 3600.0)