This is my attempt at solving a number of problems using python 2.7