converts CPython module names into MicroPython equivalents

def uimports(code):
    """ converts CPython module names into MicroPython equivalents """
    for uimport in UIMPORTLIST:
        uimport = bytes(uimport, 'utf8')
        code = code.replace(uimport, b'u' + uimport)
    return code