test_png: Use array.tobytes to fix py3.9 compatibility
test_png: Use array.tobytes to fix py3.9 compatibility

The deprecated array.tostring() method has been removed in Python 3.9.
Use .tobytes() instead.

drj11/pypng,drj11/pypng