Improve class name lookup when reraising
Improve class name lookup when reraising

d1hotpep/openai_gym,dianchen96/gym,machinaut/gym,machinaut/gym,Farama-Foundation/Gymnasium,d1hotpep/openai_gym,Farama-Foundation/Gymnasium,dianchen96/gym