python solution to problem 33