Post #854: 
In your case:
bpy.context.scene.tool_settings.use_keyframe_insert_auto = not bpy.context.scene.tool_settings.use_keyframe_insert_auto; from pie_menu_editor import ui; ui.tag_redraw(True)
FrankieH:
Edit, I’m also struggling to get the ui layout and scenes list added to a pie menu (from the top left part of the screen)
To change screen layout you can use this menu:

If you want to display screen layouts as a drop-down list use this code in Cutom tab:
L.template_ID(C.window, "screen", new="screen.new", unlink="screen.delete")
Switch scene code (Command tab):
C.screen.scene = D.scenes["Scene"]
Scene drop-down list (Custom tab):
L.template_ID(C.screen, "scene", new="scene.new", unlink="scene.delete")