creating a pyplug with write node

Hi, is it possible to create a group and pyplug with write node? Since write node doesn’t take any output stream it throws an error in python. Any work around will be really helpful. Thanks.