The Python part of the pipeline.