Refactored try-except block to iterate through numbers

Code now automatically iterates (#) appended to file name until it finds
 an open number, then saves the file as that.