These "catch-all" clauses make pylint/pep8 a little grumpy.  Another way to do this is:

     if os.path.isfile(tmp_file):
         os.remove(tmp_file)

Otherwise, this should probably catch the ``IOError`` exception.