Workaround for bytes-like-object error on Python 3 install.