3. Except as otherwise provided by law, all contracts or agreements for the leasing, renting or occupation of stores, shops, houses, tenements or other buildings in cities, towns or villages, and of stores, shops, houses, tenements or other buildings except when such leasing, renting or occupation is as tenant of real estate used or rented for agricultural purposes, other than garden purposes, not made in writing, signed by the parties thereto, or their agents, shall be held and taken to be tenancies from month to month, and all such tenancies may be terminated by either party thereto, or the party's agent, giving to the other party, or the party's agent, one month's notice, in writing, of the party's intention to terminate such tenancy.