it was working fine before running makepy, once I ran makepy, I had to add the array index to make it work.