the pyserial package is so old it doesnt even support context manager to handle serial connections.
did you work how if it is possible to update it? 3.9 or 3.10 would be great (even 3.8!).
in a pinch you could use setuptools to install an updated package, but you're replying on them being compatible with 3.6 now.