Change Current Frame acc. to Active Layer
You can do this using the below script:

import bpy

if bpy.context.scene.active_layer == 1:
    bpy.context.scene.frame_current=1
elif bpy.context.scene.active_layer == 2:
    bpy.context.scene.frame_current=11