code: def pycbc_compile_function(code,arg_names,local_dict,global_dict,
                       module_dir,
                       compiler='',
                       verbose=1,
                       support_code=None,
                       headers=None,
                       customize=None,
                       type_converters=None,
                       auto_downcast=1,
                       **kw):
      
      headers = [] if headers is None else headers
      lockfile_dir = os.environ['PYTHONCOMPILED']
      lockfile_name = os.path.join(lockfile_dir, 'code_lockfile')
      logging.info("attempting to aquire lock '%s' for "
                   "compiling code" % lockfile_name)
      if not os.path.exists(lockfile_dir):
          os.makedirs(lockfile_dir)
      lockfile = open(lockfile_name, 'w')
      fcntl.lockf(lockfile, fcntl.LOCK_EX)
      logging.info("we have aquired the lock")
  
      func = _compile_function(code,arg_names, local_dict, global_dict,
                       module_dir, compiler, verbose,
                       support_code, headers, customize,
                       type_converters,
                       auto_downcast, **kw)
  
      fcntl.lockf(lockfile, fcntl.LOCK_UN)
      logging.info("the lock has been released")
  
      return func
docs: Dummy wrapper around scipy weave compile to implement file locking