Added pe9 solution in python