Updated _entities generator module:
- Removed unneeded PyNotifyShouldTransmit. Instead directly allow overriding NotifyShouldTransmit.
- Simplified/automated code more.
Fixed crash with cef browser when the page contains sub frames. Should call ParentWindowWillClose before closing browser in this case.