trim the fat off hardware.py into openbci-driver.py