python3: use PyBytes_* instead of PyString_* fncs
python3: use PyLong_* instead of PyInt_* fncs