Removed python3 incompatible types.BooleanType
Fixed #75