Optimizing Python Code: A Case Study with the Bisect Algorithm