Self-training in writing idiomatic python (3) based on Jeff Knupp's book