Section 38. The keeper of every public lodging house shall at all times, when so required by any officer of the building department, of the health department, or of the police department, give him free access to said house or any part thereof.