def METHOD_NAME(self):
    tmp_conf = os.path.join(user_config_dir,
                 self.tmp_config_file)
    if os.path.isfile(tmp_conf):
        try:
            os.remove(tmp_conf)
        # sometimes, an earlier test delete file between exists and
        # remove calls, this gives a WindowsError
        except WindowsError:
            pass
    while os.path.exists(tmp_conf):
        pass  # make sure the file is really gone before proceeding further