working on some project Euler problems in python