The key_generate.py tool distributed ( simplelink_cc13xx_cc26xx_sdk_6_40_00_13\tools\common\oad\keys\key_generate.py= is broken and generates garbage with Python 2.7
It does not work with Python 3.xx on account of using tostring instead of tobytes
We managed to fix it ourselves, but it really needs to be updated to run with latest Pytholn 3.xx