Python program to find number of bits necessary to represent an integer in binary