I generally prefer try: except: that checks errno.EEXIST instead of "if not os.path.exists()" in concurrent systems.  However, I don't know if two distributor instances can try to create overlapping directory trees in pulp.  Just something to keep in mind.