str usage incompatible with python2 is removed.