Update serialport.py with regards to endian-ness.