def checkdms(dms):
    """Verify a sexagesimal string; returns True if valid, False if not
    """
    assert isinstance(dms, str)

    try:
        d=dms.split(':')
        for i in range(3): float(d[i])
        return True
    except:
        return False