Use range from six.moves.
Make pulled dict.keys a list so it's pickleable.

It's a view in Python 3.
Merge pull request #286 from enthought/feature/python3-examples-generator

Feature/python3 examples generator