Convert question to python schema