Python mattgp interface