Solutions to project euler problems in python 2.7