Thank you for your excellent work.
Seems examples can't run properly in python2.7, but OK in py3.3.
That's probably true. The examples are meant as stand-alone programs and all have the "#!/usr/bin/python3" line at the top which makes most Unix/Linux style systems run them using the Python3 interpreter when executed. Pretty much all Linux distributions these days have Python3 support, and many are making Python3 the default Python interpreter used in the near future.