page = """<html>
<body>
<p>America,<br>
Now is the<br>time for all good men to come to the aid<br>of their country.</p>
<p>pile on taxpayer debt<br></p>
<p>Now is the<br>time for all good men to come to the aid<br>of their country.</p>
</body>
</html>
"""
soup = BeautifulSoup(page)
lines = soup.find('body')
for line in lines.findAll('p'):
    line = replace_with_newlines(line)
print(line)
How can I turn <br> and <p> into line breaks?