Cleanup in terrain.py.