Project Euler solutions in Python