Imported sources of netinterfaces-0.8 by Alastair Houghton (http://alastairs-place.net/projects/netifaces/)
Fixed up syntax to work with Python3