Python 3-compatibility

This work is intended to make QuantLib-SWIG compatible with Python 3.  Compatibility with Python 2 is still maintained.