Python Check If Integer Is A Power Of 2