test/example-advertisement: add python3 support

This adds support for python3 to the existing script. The script will
now work with either python2 or python3.
1 file changed