Understanding the Writer __init__() constructor