1. Does your routing script use threading or indirectly via python modules which use threading?
2. Can you reproduce this if you modify the logic to only initialize the threading bits after fork i.e. rank>0?
3. Don't initialize logic that uses threading pre fork().