Port Python3 fixes from master.
Don't write oplog progress files containing an empty list.
Fix test_read_oplog_progress.