Solving Project Euler problems using Python