how to use cython to convert python to c. array' has no attribute '