Added cimport bool for newer cypython compatibility