Worked: Worked as a standalone plugin, the one you included with Blender is broken...
**Exact steps for others to reproduce the error**
1- Enable the Layer Management addon in the prefs (It's enabled by default)
2- The default lamp and camera are in Layer 1, click on the lock icon to lock their selectability.
3- You'll get a Python error code...