I don't have the script on hand at the moment. But essentially I take two 180 degree fisheye photos one pointing straight up and one pointing straight down. (for this, I used a homebrew cardboard box and two mobotix cameras)
I then use OP's script to "unroll" each fisheye photo. I then stick them together top to bottom with looks like this: