Section 40. Any keeper of a public lodging house who violates any provision of sections thirty-five to thirty-eight, inclusive, shall be punished by a fine of one hundred dollars.