I need a python program to use a TCP connection(to another program) to retrieve sets of 9 bytes.

The first of the nine bytes represents a char, and the rest represent a double.

How can I extract this information from a python socket? Will I have to do the maths manually to convert the stream data or is there a better way?