from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
device = MonkeyRunner.waitForConnection()
result = device.takeSnapshot()
result.writeToFile('C:\\Documents and Settings\\Administrator\\first.png','png')
device.drag((67,150),(300,600),10,10)
result2 = device.takeSnapshot()
result2.writeToFile('C:\\Documents and Settings\\Administrator\\last.png','png')
print result2.sameAs(result,0.9)