i have a little problem with my script, where i need to convert ip in form \'xxx.xxx.xxx.xxx\' to integer representation and go back from this form.
def ipto
One line
reduce(lambda out, x: (out << 8) + int(x), '127.0.0.1'.split('.'), 0)