update cbb520_hw3 python code