python/retrace: Allow to specify the range of calls of interest.