Properly convert IHandleEntity argument in tracefilters for Python.