examples now cross compatible with both python 2.x/3.x