Update raycast_object_space.py

No more "index is out of scope" error.