One way is to write a formula which adds whatever names you want to use (modules, functions, variables, etc.) to the Python builtins module. For example, if I wanted to use the json module a lot without having to re-import it in each formula, I could have one formula which does this:
import json
import builtins
builtins.json = json
return None # just to make Grist happy that the formula is returning something