def parseKinariHBonds(path):
    """
    Parses a kinari file specified by `path` and returns a list of tuples
    associating atom-id pairs of hbonds. For each hbond, the lowest id will
    be the first entry and the higher will be the second. Kinari Hbond files 
    have the format:
       0              4              0             33       -7.08816
       0             10              0             40       -1.85904
       0             17              0             47       -1.63142
       0             24              0             54       -5.39817
    ...
    """
    ret = []
    with open(path) as kinFile:
        for line in kinFile:
            tokens = line.split()
            min_id = min(int(tokens[1]), int(tokens[3]))
            max_id = max(int(tokens[1]), int(tokens[3]))
            ret.append( (min_id, max_id) )
    return ret