fixing up example script for python 3.2