Here are the contents of the XML I tested.
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfScript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Script Name="BL_CBTR_SS" LDesId="BL_CBTR_SS_L" SDesId="BL_CBTR_SS" ConnPortNum="2" LengthUnit="in" >
<Params>
<Param Name="S" LDesId="BL_CBTR_SS.S" SDesId="BL_CBTR_SS.S" Type="STRING" Ask4Dist="false" Value="24" pg="MainDimensions" />
<Param Name="TY" LDesId="BL_CBTR_SS.TY" SDesId="BL_CBTR_SS.TY" Type="ENUM" Ask4Dist="false" Value="1" pg="MainDimensions" />
<Param Name="W1" LDesId="BL_CBTR_SS.W1" SDesId="BL_CBTR_SS.W1" Type="LENGTH" Ask4Dist="false" Value="6.0" pg="MainDimensions" />
<Param Name="L1" LDesId="BL_CBTR_SS.L1" SDesId="BL_CBTR_SS.L1" Type="LENGTH" Ask4Dist="false" Value="144.0" pg="MainDimensions" />
<Param Name="RS" LDesId="BL_CBTR_SS.RS" SDesId="BL_CBTR_SS.RS" Type="LENGTH" Ask4Dist="false" Value="6.0" pg="MainDimensions" />
</Params>
</Script>
</ArrayOfScript>
This might be related, but a slightly different issue. One of our clients had a problem with the upgrade and running new Python scripts. We had to change their Shared content folder to the OOTB local setup, Run the PLANTREGISTERCUSTOMSCRIPTS, then change it back to their network location and copy all the files from the local folder to the network location. After that, they were able to run the Python scripts without issue.
When we migrated from Py2 to 3, we kept two sets of code for a while, then ran the Plantreg... into each Plant version CustomScripts folder. Our code didn't have many changes when going from 2 to 3; some prints had to change, and other minor changes. We learned how aggressively the PlantReg... command finds files in the CustomScripts folder. We originally kept both Py versions in a single folder as a backed-up zip folder, and that caused some issues, so now it's all separated between Py2 and 3 and the respective plant version.
If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"