Remove redundant parens
join lines
Put utility functions last
Remove trailing whitespace