if not os.path.exists(os.path.join(blinker_path, '_saferef.py')): open(os.path.join(blinker_path, '_saferef.py'), 'w').close() ...