Add and use q3py_exit() function to exit on fatal failures
Add and use function to check whether required vmMain Python method has been set