Separating out lines of python generated in messaging.js to help debugging