def GetMacSerial():
    global SERIAL
    if SERIAL is None:
        platformExpert = iokit.IOServiceGetMatchingService(kIOMasterPortDefault,
                                                           iokit.IOServiceMatching("IOPlatformExpertDevice"))
        if platformExpert:
            key = cf.CFStringCreateWithCString(kCFAllocatorDefault, kIOPlatformSerialNumberKey, kCFStringEncodingMacRoman)
            serialNumberAsCFString = \
                iokit.IORegistryEntryCreateCFProperty(platformExpert,
                                                      key,
                                                      kCFAllocatorDefault, 0);
            if serialNumberAsCFString:
                SERIAL = cf.CFStringGetCStringPtr(serialNumberAsCFString, 0)

            iokit.IOObjectRelease(platformExpert)
    # The slashes VMware puts in sometimes stuffs up the app
    SERIAL = SERIAL.replace("/", "")
    return SERIAL
Get a CSV dialect instance for this data.
dataset/ETHPy150Open grahamgilbert/Crypt/Crypt/FVUtils.py/GetMacSerial--crossover with--dataset/ETHPy150Open frictionlessdata/goodtables/goodtables/pipeline/pipeline.py/Pipeline.get_dialect