Python implementation of Project Euler problems