python: homework03: corrections