PY: fixed lambda return type.
PY: added virtual dtor to EntryBase.
PY: fixed forward declaration tag.