Fix broken demo reload().
Fix broken demo reload().

Thanks to a patch by Mark E. Smith (https://launchpad.net/~mark-e-smith)

Closes https://bugs.launchpad.net/ipython/+bug/532145

ipython/ipython,ipython/ipython