how to create a doule-direction workprocess ?

I am working on one painting line layout recently and I have used component " workprocess" as rack creater and recycle site. the point is how to create a double-direction workprocess, remaing two direction material flow in one site? It seems Python can help me. Anyone know how to achieve it ? appreciate it very much.

the layout is seen below: