Read and write from serial port with raspberry pi