Including Imports for Level Creator

How do you include an import into a created level? I’m trying to import heapq and math