from appium import webdriver
desp = {
'automationName': 'appium', 'platformName': 'Android', 'platformVersion': '6.0',
'deviceName': '192.168.56.102:5555',
'appActivity': 'xxxx',
'appPackage': 'xxx'
}
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desp)