I am having issues translating some spherical harmonics code given in Matlab to Python (seen below) and wanted to see if anyone could help or had any tips/tricks/resources t