fix warning for python3

use PyUnicode_FromString instead of PyString_FromString
this warning prevented loading _imaging, somehow
fixed check for str with Python 3