Solutions for some of the exercises of Think python