A couple comments about the code above.
Python Init(); is unnecessary in JMP 18 and beyond. Python is live with the first JSL Python statement run or the first script run from a Python script editor.
Second, for a multi-line string passed to Python Submit you can't just quote the string. In JSL there are special characters that flag a string to be represented as a whole.
Python Submit (
"\[
import blah
# my python code here
]\");
Just search for Python Submit in JMP's Scripting Index to see an example. ( Under Help menu. Help -> Scripting Index )