Python: is it possible to import another text block?
Yes it is possible. Name your text block (with .py on the end, otherwise you can't import it). You can import a text block using the text block's name without it's extension:

import mypythonfile


Then to run a function use:

mypythonfile.functionname()