They sound like weevils. Horrid, horrid things, you can get traps (they're called pantry moth traps) for them from the supermarket, and in various shops/markets etc you can buy more natural things to keep them out of your pantry.