Solving Project Euler problems using pyhon