terrain.py cleanup.