How To Convert Boolean To Integer In Python