Python is out of question the best solution to optimize Nuke pipeline for now. The main purpose of this tool is building Contact Sheet, which can read all the shots by full frame range or single frame and set the parameters for the Contact Sheet node before it creates.