Open API for Smart Packages/Element Element argument

Trying to get a list of elements in a smart package using a Jython macro. I was using getAdditionalElements() from the API Page but running into issues.

Whenever the API page lists a method's argument like (Element element), what is it expecting for its argument? I passed a reference to the smart package and got an error stating it requires two arguments, and all other arguments I can think off (e.g., Element from com.nomagic.uml2.ext.magicdraw.classes.mdkernel, the same smart package reference again), I get a type error saying self arg can't be coerced to it. Any idea on how to structure the method?