Curves that expel each other

Dear all,

I am experimenting some features related with curves. I have a system composed of many pipes that are not suppose to overlap with each other. However, as I try to allocate the pipes using python code, my knowledge about the system is only sufficient to know where around to place the pipes but not where exactly the wires should be. For convenience I place the pipes by creating curves with many vertices. These vertices span for a every few centimetres, whereas the head and tail of the pipes are fixed to some other objects. I wonder if there is any method allowing the pipe to relax a bit after they are arranged to the scene.

What I really need in this experiment is to have a final relaxed scene, and to take still images when the curves are settled.

Does Blender provide functionality for post-allocating relaxation of curves with forcefields? What I think it should be is the Effector, but I have no idea how to apply the effect to my objects.

Any help? Thanks in advance.