Wrote functions to get Return Time Distribution from python function provided by AGP.