Wood bugs generally aren't harmful. Gnats usually start to appear if the enclosure doesn't have enough ventilation and are attracted to the amonia from urates.

It is very important that you identify the bugs you have seen in your snake's enclosure.