Power PMAC python code