def list2file(mylist,path):
    try:
        with open(path,'w') as f:
            for item in mylist:
                f.write("{}\r\n".format(item))
        return True
    except Exception as err:
        sys.stderr.write(str(err))
        sys.stderr.write('\n')
        return False
Returns the first free slot, or None on failure
dataset/ETHPy150Open FredHutch/swift-commander/swift_commander/swsymlinks.py/list2file--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/general/ServerRegistryMMap.py/ServerRegistryMMap.firstFreeSlot