Python: exercises 42 & 43

Note: There seems to be some kind of error in exercise 43, I’ll track
it down when I get a second.