Hello Steve, how long did I remain without accessing this forum!
I followed your suggestion and used a region with fewer outline lines (very small).
I did not quite understand your other suggestion of using a stand-alone script.
The shapefiles I used, as well as the script are attached.
I tried to run it again in the Python terminal of Arcgis (10.2) again,
but the same error described at the beginning persists.