Fixed boolean -> bool to follow numpydoc convention