avoid EOF error by returning newline instead of empty string

Perhaps this is a bug that should be fixed in PythonQt instead.
When returning an empty string, an EOF error is generated by the
Py_BuildValue() call on an empty string.
adding addVariable() convenience method to ctkAbstractPythonManager