If any purchaser of cotton shall fail to account to the seller for the actual weight of the cotton bought, except where the amount of the deduction is agreed upon between them, or adjudged by a disinterested person for them, he shall be guilty of a misdemeanor, and, on conviction, shall be punished as prescribed in the last section.