bisect from Python!