If you are going to have seperate render settings for each and every camera, you can simplify the above script to not to restore the global render settings on post render, as the next camera will set it anyway to its own settings: