Update example.py fixed major bugs in class_fmt