cubit funs that take lists that will be modified as inputs

Hello,

I am having trouble using functions such as cubit.get_block_elements_and_nodes that take lists as inputs to be modified. I have tried defining lists via a = or a = list() and then passing those as arguments, but neither works. Can you provide an example of how to use this function?

Thanks,
Stephen