Original Sources:

Used in this file:

~ Ex.:
import sublime, sublime_plugin
 
class ExampleOneCommand(sublime_plugin.WindowCommand):
	def run(self, edit):
		active_sheet = self.window.active_sheet()
		active_view = self.window.active_view()

Remeber:

Pass edit to the run function as argument only if you intend to modify the window