Are you so far with this Arduino/Pi integration that you can send a single byte from the Arduino using the serial port, and receive it on the Pi ?
What data type is the array ? If it is not bytes, you can create a union across it so you can view the array as bytes, although there are some risks doing this across platforms where datatypes may not be represented in the same manner.
in your case, you would need only a single type. the length specifies the length of the message.
since you're length should be fixed, you would look for a type with a specific value and a specific length value, otherwise you would reject received bytes until you do.
then read the length of the message containing all your values.
of course you can add addition messages with different type/lengths or variable lengths.
having the message specify the length makes is easier to synchronize because you can reject messages with lengths > limit and if you process the message, there's a limited number of bytes to read.