add python solution for Project Euler problem 24