python program powers of 2 using map