Support passing arrays to Python