fixed a bug in tracer backend (python file)