Project Euler 1 Python