Even with the change suggested here, I’m still getting
TypeError: cannot use a string pattern on a bytes-like object