This template written in Python connects to a AIX HMC and creates a basic LPAR.The only python library that you need to import is xml.