Made Examples Python 3.x compatible

w.r.t #126, I previously forgot to make the examples Python 3.x compatible.