def sdk_normalize(filename):
 if filename.startswith('/Developer/SDKs/'):
  pathcomp = filename.split('/')
  del pathcomp[1:4]
  filename = '/'.join(pathcomp)
 return filename

def sdk_normalize ( filename ) : if filename . startswith ( '/Developer/SDKs/' ) : pathcomp = filename . split ( '/' ) del pathcomp [ 1 : 4 ] filename = '/' . join ( pathcomp ) return filename
normalize a path to strip out the sdk portion .