Referencing single geometry from gh to ghPython, but ghPython outputs duplicates

Python beginner here.

I’ve written a script to unify the normals of mutiple surfaces using a reference geometry. Having trouble converting this into a ghPython component.

When I try to bring in a singular reference geometry in line 11 it creates one for every geometry referenced in line 5, when i only need one.

I would be greatly appreciated if anyone could offer a solution.

Thanks in advance!