swig: update pySwigBinding to detect python3

Add -py3 to swig if we use python3.x.