def extract_ip(guid):
  '''Extracts the ip portion out of the guid and returns it
     as a string like 10.10.10.10'''
  # there's probably a more elegant way to do this
  thisip = []
  for index in range(24, 40, 4):
    thisip.append(str(int(guid[index: index + 4], 16)))
  return '.'.join(thisip)
Extracts the ip portion out of the guid and returns it
     as a string like 10.10.10.10
recipes/Python/163604_GUID/recipe-163604.py