<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sumai(array):
 """ Return the sum of the elements of an integer array. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sumai_c.html :param array: Input Array. :type array: Array of ints :return: The sum of the array. :rtype: int """

    n = ctypes.c_int(len(array))
    array = stypes.toIntVector(array)
    return libspice.sumai_c(array, n)