@property
def hostname(self):
    try:
        return self.netloc.split(':')[0]
    except IndexError:
        return ''
@property
def hostname(self):
    try:
        return self.netloc.split(':')[0]
    except IndexError:
        return 