Py3k fixes for scheduler related tests.