Project Euler solutions for python