Implement notify callback

First notification is for eviction events.
Also fixed a bug in hybridsim.py (must keep the CBFUNC objects around).