Solve issue with ipaddr and mock on Python3