Fixes installation procedure on Macs

pil's formula was recently removed from brew, and 'brew install pil' no longer
works. This also removes trailing whitespaces.