def __init__(self, d):
        cat = d['category']

        super(NetflixAvailability, self).__init__(**cat)
        try:
            self.available_from = datetime.fromtimestamp(float(d['available_from']))
            self.available = False
        except KeyError:
            self.available_from = None
        try:
            self.available_until = datetime.fromtimestamp(float(d['available_until']))
        except __HOLE__:
            self.available_until = None
dataset/ETHPy150Open ryszard/python-netflix/netflix/__init__.py/NetflixAvailability.__init__