Note that this is causing travis to fail because it's getting run as a doctest.  If you just get rid of all the ``>>> ``s it should still appear fine in the documentation and not trigger doctest.