Custmer Detailed ledger report

Good Morning.
our requirement is customer detailed ledger report is a standard and script report. i need attached image columns for python script. and java sript for columns like customer,from_date,due_date Respectively.