#python coding for 1s complement