Importable module with **static files** when running Odoo v11.0 with **python3** runs into following error 

Traceback (most recent call last):
  File "/home/odoo/code/odoo/addons/base_import_module/models/ir_module.py", line 126, in import_zipfile
    self._import_module(mod_name, path, force=force)
  File "/home/odoo/code/odoo/addons/base_import_module/models/ir_module.py", line 82, in _import_module
    url_path = url_path.decode(sys.getfilesystemencoding())
AttributeError: 'str' object has no attribute 'decode'


With Python3 Odoo code is trying to decode an object that is already decoded at https://github.com/odoo/odoo/blob/11.0/addons/base_import_module/models/ir_module.py#L82. 
[Line 82 in import module](https://github.com/odoo/odoo/blob/11.0/addons/base_import_module/models/ir_module.py#L82) will have a `str`, there is no need to decode from file system encoding anymore.

Thank You

pathname = opj(path, filename)
                idref = {}
                convert_file(self.env.cr, module, filename, idref, mode=mode, noupdate=noupdate, kind=kind, pathname=pathname)
        path_static = opj(path, 'static')
        IrAttachment = self.env['ir.attachment']
        if os.path.isdir(path_static):
            for root, dirs, files in os.walk(path_static):
                for static_file in files:
                    full_path = opj(root, static_file)
                    with open(full_path, 'rb') as fp:
                        data = base64.b64encode(fp.read())
                    url_path = '/%s%s' % (module, full_path.split(path)[1].replace(os.path.sep, '/'))
                    url_path = url_path.decode(sys.getfilesystemencoding())
                    filename = os.path.split(url_path)[1]
                    values = dict(
                        name=filename,
                        datas_fname=filename,
                        url=url_path,
                        res_model='ir.ui.view',
                        type='binary',
                        datas=data,
                    )
                    attachment = IrAttachment.search([('url', '=', url_path), ('type', '=', 'binary'), ('res_model', '=', 'ir.ui.view')])
                    if attachment:
                        attachment.write(values)
                    else:
                        IrAttachment.create(values)
        return True
    @api.model
    def import_zipfile(self, module_file, force=False):