Convert Binary Number To Int Python Def