Fix --output-file option

When opening the file for binary writing, the file mode was incorrectly
specified.

The file can now be successfully written with:
```shell
python create_pdfs.py \
    --output-file report.csv
    --course-id 'edX/DemoX/Demo_Course' \
    --no-upload \
    --name 'Guido'
```