Usually the first parameter (string) is the api key value (when you see the java.lang error message any way).
I don’t know about the python module but generally the SDK’s handle that part automatically.
So the below should be how it’s formatted with Python. The short of it is that the parameters (user id, page number etc) must be an array of arguments.