I'm so sorry!
Ah, the joys of flour bugs...I'm sure they have an official name, but that's what my mother calls them. We had numerous infestations of them when I was growing up, and I've dealt with a few outbreaks in my own kitchens. The only way I've ever managed to get rid of all of them if pretty extreme - I throw out everything, and I mean everything, that they're in or that I think they might like. All flour, cereals, teas, grains, crackers, cookies, etc. On the same day, I wash all of the storage containers that were holding these items and scrub every single drawer and shelf in the kitchen with hot soapy water. I don't know what the bugs' life cycle is, or where they lay their eggs, but this seems to get rid of them.
Then I wait a week or so and start over, making myself stick to my bug-free storage rule: anything remotely edible gets stored in a glass jar (I recycle lots of mason jars this way) or a thick-walled, tightly sealing plastic container (tuppeware/rubbermaid/etc). Even if it's something we'll be eating soon, I store it in a container. I'm sure my kitchen shelves look a bit weird to some people, but it works.