Translation of tests to Python 3 grammar