Solving Project Euler with Python