Python — Bisect Module — Search and Insert into a Sorted Array