removed import of doctest when not called as main