I think that the problem comes from the serial protocol configuration at the Raspberry Pi side, specifically with the stopbits. To fix the problem, just set the stopbits to two, like this:
self.port = serial.Serial() self.port.stopbits = 2