Use logging instead of prints