That depends on the jam, but usually in the same format preferred on itch.io: as a zip archive. Few jams have tool or language restrictions.
When compiling a python file to exe it might be recognised as a Trojan by antivirus software. Won't that be a problem?
It might, but false positives happen a lot, and I don't know how to fix them. Some people get suspicious. We try to explain. Sometimes it helps.