Minor change which fixes some problems with running dill under doctest

Possible fix for #18. Can @JoshRosen see if this solves the test suite problems?