| __author__ = 'thoth'
# for http://blender.stackexchange.com/questions/40975/how-to-shift-layers-4-layers-ahead
import bpy
def shift_layers(obj, src, dst):
    for i in range(len(obj.layers)-1, dst-1, -1):
        obj.layers[i] = obj.layers[i-dst+src]
    for i in range(src, dst):
        obj.layers[i] = False
for obj in bpy.data.objects:
    shift_layers(obj, 5, 10)
 | 
Blender python API quick-start
Syntax highlighting by Pygments.