examples now work on python 2 and 3