Style edits to arduino.py and hardware.py