updated pyton class file