scons: avoid pollution of global compiler flags from python plugin - closes #2060