Solutions for problems from projecteuler.org in Python