There is an option to the "call" procedure when logging from Python:
import syslog
# Log messages to "LOCAL0" facility
syslog.openlog(facility=syslog.LOG_LOCAL0)
# Write something to the logfile
syslog.syslog(syslog.LOG_INFO, "This is a logged message")
syslog.closelog()
You may then filter these from the shell:
root@Omega:~# logread -l 800 | grep "local0"
Thu Dec 13 09:02:24 2018 local0.info log.py: This is a logged message