Python Need To Modernize My Scripting This Bpy Based Script From 2

Python Need To Modernize My Scripting This Bpy Based Script From 2