def cashout_doge(self):
        webserver_x = webserver_c.begin_transaction()
        payments = {}
        serviced_txns = []
        lxtxid = ''
        for order in webserver_c.search('dogecoin_txns', {'txid': ''}): 
            try:
                amount = order['amount'] - 0.0002
                addr = order['pub_key']
                if addr in payments.keys(): payments[addr] += (amount * COIN)
                else: payments[addr] = (amount * COIN)
                serviced_txns.append(order['when'])
            except:
                continue
        if len(payments) > 0:
            print 'Calling send'
            txid = dogecoin_rpc.sendmany(fromaccount='', payments=payments)
            lxtxid = b2lx(txid)
            print '%s' % lxtxid
            for when in serviced_txns:
                webserver_x.put('dogecoin_txns', when, {'txid': str(lxtxid)})
        webserver_x.commit()
iterate on key->group
dataset/ETHPy150Open bloomark/f13x/admin_utils/manage.py/Manager.cashout_doge--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/HDFStore.items