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

addons/base_import_module/models/ir_module.py
r = ["Successfully imported module '%s'" % mod for mod in success]
        for mod, error in errors.items():
            r.append("Error while importing module '%s': %r" % (mod, error))
        return '\n'.join(r), module_names
def _is_studio_custom(path):
    """
    Checks the to-be-imported records to see if there are any references to
    studio, which would mean that the module was created using studio
    Returns True if any of the records contains a context with the key
    studio in it, False if none of the records do
    """
    path = os.path.join(path, 'data')
    filenames = next(iter(os.walk(path)))[2]
    filenames = [f for f in filenames if f.lower().endswith('.xml')]
    for filename in filenames:
        root = lxml.etree.parse(os.path.join(path, filename)).getroot()
        for record in root:
            
            try:
                
                
                ctx = ast.literal_eval(record.get('context'))
                
                
                if ctx and ctx.get('studio'):
                    return True
            except Exception:
                continue
    return False