Project Euler #2: python solution