Updated python solution to problem 01