add interrupted argument to AgentStub.finalize()
ugly hack to ensure newline endings
version bump and switch to Python2.7