Fix Python3 errors, optimize IPSet.discard()
Add network mask awareness to v46map()