made pep8 compliant

also removed second initialisation method in the writer.