ScrollLinesCommand, Frontend interface, Python ref count fixes.