FIX: proper mock of sys libraries ( threading )