This fixes deprecation warnings printed by Python 3.11.7. Change-Id: I1de93b0fee9e8439f7da8a3b9fd2a6974973fb4f