When running inside the VE, the python environment includes the <Virtual Environment> API. To use the VE API, import the module to your script like this:
import iesve
High res PDF version: https://www.iesve.com/support/faq/pdf/vescriptsguide/iiesve-class-structure-summary.pdf
High res PDF version: https://www.iesve.com/support/faq/pdf/vescriptsguide/iiesve-class-structure-details-without-attributes.pdf