#ones complement in python