Problems of Project Euler in Python