Learn PY the Hard Way:chapter38 & chapter39