Generate MediaTek bootload header. Python2