PY3+RF: Improved Python3 compatibility
ENH: print error message with "%s", not "%r"