doctests for space.py