Euler Project puzzles in Python