Conversion of integer to boolean and vice-versa in python || python series-9