code from other python books