def __init__(self, session_id = None, buckets = None, **kwargs):
        super(PlaylistProxy, self).__init__()
        core_attrs = ['session_id']
        self._object_type = 'playlist'
        if session_id:
            self.session_id=session_id
        else:
            buckets = buckets or []
            kwargs['bucket'] = buckets
            kwargs['genre'] = kwargs['genres']
            del kwargs['genres']
            kwargs = dict((str(k), v) for (k,v) in kwargs.iteritems())
            
            if not all(kwargs in ca for ca in core_attrs):
                kwargs = dict((str(k), v) for (k,v) in kwargs.iteritems())
                profile = self.get_attribute('create', **kwargs)
                kwargs.update(profile)
            [self.__dict__.update({ca:kwargs.pop(ca)}) for ca in core_attrs if ca in kwargs]
            self.cache.update(kwargs)
dataset/ETHPy150Open echonest/pyechonest/pyechonest/proxies.py/PlaylistProxy.__init__/swapped operands of `in`