[python] Handle different return order for sources in test_18n.