Problem 2 python