Fix up hello world example and tutorial

Make hello world example run as a python script.  Make example and tutorial code match.