Project Euler #1 - Python solution