Самый простой ответ - поместить код, который вы пытаетесь запустить, в такую функцию, как эта
(внутри вашего модуля, который вы импортируете сейчас):
def main():
# All the code that currently does work goes in here
# rather than just in the module
(Модуль, который выполняет импорт)
import your_module #used to do the work
your_module.main() # now does the work (and you can call it multiple times)
# some other code
your_module.main() # do the work again