Hid ScriptNode binding internals in an anonymous namespace.
Added GIL release to ScriptNode undo() and redo() bindings.

This fixes a deadlock when an IPR restart was triggered from undo or redo - with the UI holding the GIL on the main thread and the Display node emitting a signal with a python slot attached on a background thread.