Python 3 accept_scalar for str fix.