tools: update sdwrap.py to use Python3.8 features
#54348
Closed
sdwrap.py to use Python3.8 features
#54348