def coordinateHashToXYTupleList(coordinateHash):
    """
    Converts a coordinateHash to a list of tuples

    :param dict coordinateHash: a hash using
     {x1:[y1:True,y2:True..],x1:[y1:True,y2:True..]} format
    :return: list of (x,y) tuples.
    """
    return [(x, y) for x, _y in coordinateHash.items() for y, _ in _y.items()]