Swig optimizations

with recent upgrade to the newest swig binary, add available `swig/python` optimization flags.