Be aware that import always takes the interpreter's modules lock, which can stall your script if something big is importing elsewhere (highly parallel as noted above). All use of import should be in project library scripts at the outermost level, never inside function definitions, or performance will suffer.
5 Likes