`TGPlugin.render` method is calling `TGPlugin.load_template` method which is making strings manipulations and `bytes` type in py3k is not the same as `str` type in py2k, so in this case (if template name was provided as `bytes` type) code will raise exception later.