import sublime, sublime_plugin


class PydevCommand(sublime_plugin.WindowCommand):

    def run(self):
        self.window.run_command('set_layout', {'cols': [0.0, 1.0], 'rows':
            [0.0, 0.5, 1.0], 'cells': [[0, 0, 1, 1], [0, 1, 1, 2]]})
Running Python interactively from within Sublime Text 2