There is a huge difference between walking/slithering past a tree and living on wood shavings. The issue is the oils in the wood. Not to mention that you probably aren't going to find many pine trees in the parts of Africa that BP's are from.
While pine is debated Cedar is 100% known to be toxic so it's not like it is an unprecedented occurrence.
To the OP:
I personally wouldn't regardless of the toxicity issues as the wood isn't going to handle the humidity well and more than likely will create stagnant air issues.