Project Euler problems using Python