Fix #5; use isinstance instead of type; small changes
Fix #5; use isinstance instead of type; small changes

Lists can be indexed using True and False, no conversion to int necessary;
cleaner check if self.mask is between 0 and 32 or 128

panaceya/ipcalc,tehmaze/ipcalc