Replace a single green point with two on either side

Has anyone ever written a script to replace a single green point (two handles) with two green points each with single handles? This is something I need in order to adapt my paths for bracket layers

Look for the Duplicate Node plug-in in Plugin Manager.