Fix recipe 7.8 (thanks to @mpelko). Close #9.
Merge branch 'master' of https://github.com/ipython-books/cookbook-code

Fix recipe 7.8.