class MainCommand(sublime_plugin.WindowCommand):

    def run(self):
        newFile = self.window.new_file()
newFile.run_command('second', {'arg': 'this is an argument'})
Save the edit when running a Sublime Text 3 plugin