Project Euler problems in Python