How To Convert Boolean To Int In Python