Test and fixes for localinterfaces

I noticed a warning from attempting to load IP addresses on Python 3. This adds a test and fixes the issue.