Fixed #183. Added check for python3 installation with brew on OS X.

.