Move the "create master pointer" panel into its own class.
Fix a few style issues pointed out by pylint.