Fixed all pep8 errors in hardware folder