Python's bisect will (after several closed tickets) gain a key= keyword argument, but only in 3.x: http://t.co/8qMDXUIztt