fast, pure-python interval overlap testing