A couple of project euler solutions in python