def arch_to_personality(arch):
    """
        Determine the process personality corresponding to the architecture
    """
    if isinstance(arch, bytes):
        arch = unicode(arch)
    return _lxc.arch_to_personality(arch)
Determine the process personality corresponding to the architecture