close #27 changed boolean syntax to be more Pythonic