Python implementation of the Bentley-Ottmann algorithm for 2d line segment intersection, described in deBerg et al. Ch. 2.