Added UI to add/edit Python operators.
Fix segfault on exit.