Solutions to Project Euler questions in Python