def removeReader(self, reader): if hasReader(reader): gobject.source_remove(reads[reader]) del reads[reader]