- handles main files without a suffix - handles main submodules properly - adds test cases for the various kinds of __main__