fixes for python string handling of trailing slashes