I tried to use the bincopy library but it doesn't convert well or it gives an error. I also tried to split each line in the file but I don't know how to transform those strings.
import bincopy
f = bincopy.BinFile("test.mhx")
print(f.as_ihex())
Here's the error message:
