def pil_to_rgb(pil):
r = <NUM_LIT> & pil<EOL>g = <NUM_LIT> & (pil >> <NUM_LIT:8>)<EOL>b = <NUM_LIT> & (pil >> <NUM_LIT:16>)<EOL>return tuple((v / <NUM_LIT> for v in (r, g, b)))<EOL>
Convert the color from a PIL-compatible integer to RGB.

    Parameters:
      pil: a PIL compatible color representation (0xBBGGRR)
    Returns:
      The color as an (r, g, b) tuple in the range:
      the range:
      r: [0...1]
      g: [0...1]
      b: [0...1]

    >>> '(%g, %g, %g)' % pil_to_rgb(0x0080ff)
    '(1, 0.501961, 0)'