'Initializes the Watcher'

def __init__(self, accounts=None, debug=False):

    self.datastore = datastore.Datastore()
    if (not accounts):
        accounts = Account.query.filter((Account.third_party == False)).filter((Account.active == True)).all()
    else:
        accounts = Account.query.filter((Account.third_party == False)).filter((Account.active == True)).filter(Account.name.in_(accounts)).all()
    if (not accounts):
        raise ValueError('Watcher    needs    a    valid    account')
    self.accounts = [account.name for account in accounts]
    self.account_identifiers = [account.identifier for account in accounts]
    self.debug = debug
    self.created_items = []
    self.deleted_items = []
    self.changed_items = []
    self.ephemeral_items = []
    self.rate_limit_delay = 0
    self.honor_ephemerals = False
    self.ephemeral_paths = []
    self.batched_size = 0
    self.done_slurping = True
    self.total_list = []
    self.batch_counter = 0
    self.current_account = None
    self.technology = None
