mongoCollection.ensure_index('orderId', unique=True)
mongoCollection.update({'orderId': row['orderId'], 'itemWeight': {'$ne':
    row['itemWeight']}}, row, upsert=True)
pymongo: a more efficient update