import os
# set directory to Desktop
os.chdir("C:/Users/" + os.environ.get("USERNAME") + "/Desktop")
print "Enter name of TAB separated file. Make sure"
print "that it's located in the Desktop"
tab_file = raw_input("=> ")
print "Give a name to the CSV file to be created"
print "(Use .csv extension)"
comma_file = raw_input("=> ")
file_1 = open(tab_file, "r")
file_2 = open(comma_file, "w")
for line in file_1:
file_2.write(line.replace('\t', ','))
file_1.close()
file_2.close()
print "All done!"
quit()