Project Euler solutions in python