Every owner of, and every agent in charge of a tenement house, lodging house, tourist home, tourist cabin or hotel, or part thereof, shall cause all parts of the premises not within the occupied apartments to be kept clean. No person shall place filth, urine, or fecal matter in any place other than that provided for the same, or keep filth, urine or fecal matter in his apartments or upon his premises for such length of time as to create a nuisance, and every tenant shall keep his apartment in clean and sanitary condition. The walls of courts and shafts, unless built in a light colored brick or stone, shall be thoroughly whitewashed or painted a light color and shall be so maintained. The whitewash or paint shall be renewed as required by health authorities.