Use logging instead of lots of print() calls.