clean code in  bsp/simulator/rtconfig.py