update cbb520_hw2_Part4 Python script