Code lessons from "Gray Hat Python" book