def removeWriter(self, writer): if hasWriter(writer): gobject.source_remove(writes[writer]) del writes[writer]