Added python solution to 2.