Added another python solution.