plugin: Fix Python 3 compatibility.
Update tests for plugin.get_streams().