1 2 3 4
>>> ip='193.219.60.33' >>> int(''.join(map(lambda x: bin(int(x))[2:].rjust(8,'0'), ip.split('.'))),2) 3252370465L >>>