Python code for RADMC3D