Made three more examples compatible with Python 3.