https://researchdatapod.com/how-to-solve-python-valueerror-must-have-exactly-one-of-create-read-write-append-mode/
How to Solve Python ValueError: must have exactly one of create/read/write/append mode