Python Array Get Function C