How to debug or see logs of custom python script services?

I am using python requests library to reroute the the API which are received by Dreamfactory to another REST service , the response from that service is then again passed through the python custom scripts . but How to debug or see log for the same ?