If the IP module is loaded inside the privsep context, the following
error will occur:
return getattr(sys.modules[mod_str], class_str)
"AttributeError: 'module' object has no attribute 'PyRoute2'
Change-Id: I1852038b8d40d4aa52c4f8e661bc78e54e0fc966
Closes-Bug: #1812090