reformatted code
Python open serial port and writes to arduino