int and long bit_length meth will work unti python version >= 2.7