from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet import reactor

import editorFactory

if __name__ == "__main__":
    server = editorFactory.EditorFactory()
    TCP4ServerEndpoint(reactor, 4567).listen(server)
    reactor.run()

from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet import reactor

import editorFactory

if __name__ == "__main__":
    server = editorFactory.EditorFactory()
    TCP4ServerEndpoint(reactor, 4567).listen(server)
    print('Starting up...')
    reactor.run()

Print something at the start
Print something at the start
