State inspections found flies on pizza boxes and a pan of cookies — as well as one sitting on an apple pie! — at South Florida restaurants last week.