'Test if the address is a loopback address.
Returns:
A boolean, True if the address is a loopback per RFC 3330.'

@property
def is_loopback(self):

    loopback_address = IPv4Network('127.0.0.0/8')
    if isinstance(self, _BaseAddress):
        return (self in loopback_address)
    return ((self.network_address in loopback_address) and (self.broadcast_address in loopback_address))
