Compatibility with Python 3.9.
https://bugzilla.redhat.com/show_bug.cgi?id=1793465 https://docs.python.org/3.9/whatsnew/3.9.html#removed
array.array: tostring() and fromstring() methods have been removed. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2.