In basic_class.py , check that the callback list is a nonempty list before popping.
In basic_class.py , check that the callback list is a nonempty list before popping.

agoragames/haigha,lipixun/haigha,vitaly-krugl/haigha