from bson import Decimal128 as Decimal member['total_money'] = Decimal(str(member_money.get('total_money', 0)))