Programs from the learning python book