tools/pydfu.py: Fix regression so tool runs under Python 2 again.
tools/pydfu.py: Fix regression so tool runs under Python 2 again.

Under python3 (tested with 3.6.7) bytes with a list of integers as an
argument returns a different result than under python 2.7 (tested with
2.7.15rc1) which causes pydfu.py to fail when run under 2.7.  Changing
bytes to bytearray makes pydfu work properly under both Python 2.7 and
Python 3.6.

tobbad/micropython,trezor/micropython,selste/micropython,pozetroninc/micropython,trezor/micropython,bvernoux/micropython,selste/micropython,pozetroninc/micropython,selste/micropython,henriknelson/micropython,pramasoul/micropython,pramasoul/micropython,bvernoux/micropython,trezor/micropython,tobbad/micropython,trezor/micropython,selste/micropython,kerneltask/micropython,kerneltask/micropython,henriknelson/micropython,pfalcon/micropython,MrSurly/micropython,adafruit/circuitpython,selste/micropython,trezor/micropython,pfalcon/micropython,tobbad/micropython,pfalcon/micropython,MrSurly/micropython,tobbad/micropython,henriknelson/micropython,kerneltask/micropython,pramasoul/micropython,adafruit/circuitpython,MrSurly/micropython,adafruit/circuitpython,bvernoux/micropython,MrSurly/micropython,henriknelson/micropython,henriknelson/micropython,adafruit/circuitpython,pozetroninc/micropython,pramasoul/micropython,tobbad/micropython,bvernoux/micropython,pramasoul/micropython,pfalcon/micropython,MrSurly/micropython,bvernoux/micropython,adafruit/circuitpython,adafruit/circuitpython,pfalcon/micropython,pozetroninc/micropython,kerneltask/micropython,kerneltask/micropython,pozetroninc/micropython