Python: fixed typos in the layout test cases