fix pylint errors from addition of serial interface
fix spacing erros from #7080