def clean_up():
 for filename in ['test_file', 'Phylip/opuntia.phy', 'Phylip/hedgehog.phy']:
  if os.path.isfile(filename):
   os.remove(filename)

def clean_up ( ) : for filename in [ 'test_file' , 'Phylip/opuntia.phy' , 'Phylip/hedgehog.phy' ] : if os . path . isfile ( filename ) : os . remove ( filename )
fallback clean up method to remove temp files .