Update main.py

Removes extra line breaks when displaying results. Note that this does not remove the line breaks when there is an empty result