Python solutions for project euler