updated doctest in spatial.py. fixes #559