Update main.py to remove extra line breaks

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