Can't switch context to webview

I am using Appium 1.5 for Android.
I am able to successfully switch context to webview and interact with webview element ( my test broke previously when upgraded to 1.4 , 1.5 ) Heres the fixed snippet:

def switch_to_webview(driver):
	if not driver.context or driver.context == "NATIVE_APP":
		debug_log(“print your available contexts:  .................... %s”, driver.contexts)
		switchto = driver.contexts[0]    //point to the index of your webview
		driver.switch_to.context(switchto)
	else:
		debug_log("no need to switch")

self.webview = lambda: self.driver.find_element_by_id("webview")
self.webview()
switch_to_webview(self.driver)