ledger: update for boost-python

Step 2 of #32704! Update ledger to depend on boost-python instead of boost --with-python.