How to convert a boolean array to an int array How to convert a boolean array to an int array python python