Convert Binary String To Int Python Def