fix array in python export