console: make sure eol check runs in python3
console: make sure eol check runs in python3

Indexing into a byte array returns an integer, which will return False
when compared to a byte-array. This change makes sure we're comparing
two characters (python2) or two integers (python3)

BRANCH=None
BUG=b:183642673
TEST=python3
     b'hello\n'[-1]==b'\n'
False

TEST=python2.7
     b'hello\n'[-1]==b'\n'
True

TEST=python3
     b'hello\n'[-1]==b'\n'[0]
True

Change-Id: I26a4b1bde7acf733faae7ec355da228d76e261d0
Signed-off-by: Ruben Rodriguez Buchillon <12b0357cd989b603267f0b7cb81c747471f94bd1@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2809883
Reviewed-by: Mary Ruthven <81380f3403fed74252e92df3ed012a1819ec6296@chromium.org>
Tested-by: Mary Ruthven <81380f3403fed74252e92df3ed012a1819ec6296@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec