Learning Python through project Euler