python programs from byte of python book