otatool: Fix a crash when imported as external python lib
otatool: Fix a crash when imported as external python lib

Closes: https://github.com/espressif/esp-idf/issues/6733

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf