switch to using the envirtonment instead of serial
fix last pep8 error