binary nums 0 - 256, python ( adapted from Higher Order Perl, chapter 1 )