Python checking book ledger - manage accounts