Basically in your Python program you would Import the JMP library and then through it open up the data table you want to have available in Python.
import jmp
dt = jmp.open(jmp.SAMPLE_DATA + 'Big Class.jmp')
After that, you can use the features in Python anyway you want. If you are looking for the Python program to generate a trend chart from the JMP table, I don't believe this is the correct forum for that. You need to go to a Python forum for Python help.
Jim