Fixed line endings, however I still have the smtp problem. I added some comments to my code to show where the problem is happening,
#!/usr/bin/python3.6
import cgi
import smtplib
argv=cgi.FieldStorage();
#all commented lines other than this one are commented because they would return an error 500
#this line will not work s=smtplib.SMTP("mail.smtp2go.com", 2525);
#this line depends on 5 s.login("BitDragon_Server",My_private_password");
#this line depends on 5 s.sendmail(argv["sen"].value,argv["rec"].value,argv["mess"].value);
print("Content-type: text/html")
print();
for element in argv.keys():
print(argv[element].value;