update examples to work with Python3
Updates for pygraphviz-1.3rc1