with recent changes in the trunk revision 31570 for adding scene render layers' active and active_index properties.