Python 3 compatibility in RS tests.