convert ip address string to binary in python,print('.'.join([bin(int(x) + 256)[3:] for x in ip.split('.')]))