Python program to convert binary to integer