Solving project eurler problems with python