Boolean comparisons

Adds boolean comparison support for distributed and local arrays. With tests. I also PEP8'd some of the files I was working in.