Add pyElements method.