Section 29. The attorney general and the district attorneys shall account to the state treasurer for all fees, bills of costs and money received by them by virtue of their offices.