#Simple file copy try: inF = open("animation.gif","r") outF = open("animCopy.gif", "w") contents = inF.read(512) while( len(contents) > 0): outF.write(contents) contents = inF.read(512) inF.close() outF.close() print "All done copying the file!" except: print "File not found! (or other error!)"