how to render with python script?

i apologize for asking such a stupid question. i once knew how to render (say for example, using a Sunflow_Export.py script) with blender, but over my brake from graphics it escaped me. could someone help me out?