scons: Remove Python's -O flags from lib build

Python is often built with optimization flags that override -O0. Remove
them from the C++ build of lib/ (though we could probably manage this with
reordering instead).

Fixes https://gna.org/bugs/?20754