What is the simplest way to turn off all but one layer in python
not sure how terse you want this ;)

bpy.context.scene.layers = [i == 6 for i in range(20)]


The layer with index 6 will be flipped on, the others off.