pyang_plugin: fixed TypeError