http://nbviewer.ipython.org/urls/raw.github.com/wardi/iterables-iterators-generators/master/Iterables%2C%2520Iterators%2C%2520Generators.ipynb