https://researchdatapod.com/how-to-solve-python-valueerror-binary-mode-doesnt-take-an-encoding-argument/
How to Solve Python ValueError: binary mode doesn't take an encoding argument