Python-based app requires bypassing 'unknown developer' warning
Sign up with Apple as a paid developer and you can use your Mac App signing certificate to sign that app before distributing it. Your Apple ID will then allow Apple to trace things back to you should you sign something malicious and it comes to their attention.

You're looking for the Mac Provisioning Certificate that Apple will sign and deliver you you from https://itunesconnect.apple.com


https://developer.apple.com/osx/distribution/
https://developer.apple.com/developer-id/


The alternative would be to disable gatekeeper, but I'm presuming you want to know how to have your app be accepted by many Macs without needing each one to bypass the settings globally or grant a one-time exception to your app each time you update it.