The Python API applies to all Ansys Lumerical solvers. On windows, simply set the Python integration to use the bundled Python 3 and add the "import lumapi" into your script. Run the Python script.py script from the Script File Editor window as shown in the image below.
Note: On Linux, it requires the Gnome or Mate terminal when running from the Lumerical CAD/GUI. Otherwise, to run directly from Terminal, see this KB > How to run Lumerical API (Python) scripts in Linux – Ansys Optics.