uv islands scripting

i cant hardly find any info on how to access anything to do with uv islands.
I'm running into a problem where I cant figure out how to find the dimensions of a snug bounding box of a uv island. Any idea how I could do this?