partner10.createKey()

import xmlrpclib

#create client instance point to KA service
KAService = xmlrpclib.ServerProxy("https://ka.demo.plesk.com:7050/xmlrpc")
#prepare required structures
authInfo={"login":"API_LOGIN","password":"API_PASSWORD"}
serverInfo={"ips":["192.168.0.1"]}
features=["30_DOMAINS","1YR_PREMIUM_SUPPORT_PACK"]
#invoke command and print results
print KAService.partner10.createKey(authInfo,serverInfo,"CLIENT_LOGIN","PLESK_8",features)

partner10.upgradeKey()

import xmlrpclib

#create client instance point to KA service
KAService = xmlrpclib.ServerProxy("https://ka.demo.plesk.com:7050/xmlrpc")
#prepare required structures
authInfo={"login":"API_LOGIN","password":"API_PASSWORD"}
#key number to be upgraded
keyNumber="PLSK.10657340.0000"
#invoke command and print results
print KAService.partner10.upgradeKey(authInfo,keyNumber,"30_DOMAINS_TO_100_DOMAINS")