Added euler 47 in python