def identify(path):
 with lopen(path, 'rb') as f:
  (fmt, width, height) = _identify(f)
 return (width, height, fmt)

def identify ( path ) : with lopen ( path , 'rb' ) as f : ( fmt , width , height ) = _identify ( f ) return ( width , height , fmt )
turn any string into an identifier: - replace space by _ - replace other illegal chars by _xx_ - append _ if the result is a python keyword .