Generate MediaTek bootload header. Python3