A series of exercises and (my) solutions in python