'Executed in singlethreaded mode only.
:param accs: A list of accounts that should be synced'

def __sync_singlethreaded(self, list_accounts, profiledir):

    for accountname in list_accounts:
        account = accounts.SyncableAccount(self.config, accountname)
        threading.currentThread().name = ('Account    sync    %s' % account.getname())
        if (not profiledir):
            account.syncrunner()
        else:
            try:
                import cProfile as profile
            except ImportError:
                import profile
            prof = profile.Profile()
            try:
                prof = prof.runctx('account.syncrunner()', globals(), locals())
            except SystemExit:
                pass
            from datetime import datetime
            dt = datetime.now().strftime('%Y%m%d%H%M%S')
            prof.dump_stats(os.path.join(profiledir, ('%s_%s.prof' % (dt, account.getname()))))
