def get_coord(exifdict):
    '''
    Purpose:        The purpose of this script is to extract the Latitude and Longitude from the EXIF data
    Inputs:         exifdict: structure storing the image's EXIF data.
    Outputs:        coords: A tuple of the Latitude and Longitude in Decimal form
    Returns:        (lat,lon)
    Assumptions:    The EXIF data is valid.
    '''
    values = exifdict['gps gpslatitude'][1:-1].split(", ")
    s = values[2]
    df = float(values[0])
    mf = float(values[1])
    smath = s.split("/")
    sf = float(smath[0])/float(smath[1])
    lat = df + mf/60 + sf/3600
    if exifdict['gps gpslatituderef'] == 'S':
        lat = lat*(-1)

    values = exifdict['gps gpslongitude'][1:-1].split(", ")
    s = values[2]
    df = float(values[0])
    mf = float(values[1])
    smath = s.split("/")
    sf = float(smath[0])/float(smath[1])
    lon = df + mf/60 + sf/3600
    if exifdict['gps gpslongituderef'] == 'W':
        lon = lon*(-1)

    return (lat,lon)