sounds like flour weevils and you are going to HATE this answer. It comes from experience.
Empty your larder completely and throw out everything that isn't actually tinned or in an unopened jar. Wipe over the canned and jarred products and put then somewhere else. Throw out everything in your house that is starch based, including the childrens play dough and things like wall paper paste. Clean and vacuum like a maniac. Clean and vacuum again. If you can, buy starch related products on a daily basis and dispose of unused OUTSIDE THE HOUSE at the end of the day for about a month, keeping an eye open for little beasties and keeping up the maniacal cleaning. When you do finally store starchy items again, dont leave anything in the boxes/bags it came in and make sure that the containers are really hermetically sealed, clean up all spillage immediately and re introduce slowly, keeping your eyes open for the bugs. I introduced them into my kitchen in a wild bird food and it was a nightmare getting rid of them although we did manage it on the second attempt. You have all my sympathy and I hope its not too bad for you to get dis infested. If this doesn't work, you may need to get in a pst control agency but be sure to take their advice about airing out food storage areas before re use