Refactor Arduino and add sr argument to constructor to enable testing.
Refactor Arduino and add sr argument to constructor to enable testing.

thearn/Python-Arduino-Command-API,bopo/Python-Arduino-Command-API,ianjosephwilson/Python-Arduino-Command-API