Python bindings: fixed FileWriter