python code related to radiative transfer