Made Examples Python 3.x compatible