I've never used PIL. I suppose your project is possible as stated. Anyway, install
imagemagick,
bash, and gawk if you haven't already got them. Write the following shell script into the file windowBlinds.sh , change the mode to executable, then run with the command
path/windowBlinds.sh NameOfPicture.picture_type
For example, I tested using the Bourne again shell command:
./windowBlinds.sh BrideAndGroom.jpg | bash
it made the pictures, correctly, as
0BrideAndGroom.jpg
1BrideAndGroom.jpg
2BrideAndGroom.jpg
3BrideAndGroom.jpg
4BrideAndGroom.jpg
5BrideAndGroom.jpg
Code:
identify $1 | gawk --assign NAME="$1" '{split($3,size,/x/);for(i=0;i<6;++i){printf"convert -crop %dx%d+0+%d %s %d%s\n",size[1],size[2]/6,i*size[2]/6,NAME,i,NAME}}'
Imagemagick handles a great many picture formats. I've written the code to give output in the same picture format as input---because it's easier and you didn't give other instructions. convert uses an internal form so can input one picture format and output another without trouble.
[Edit: this solution reloads the picture 6 times. If you need to do this in real time or if performance is an issue for whatever reason, a gimp script or the PIL might be preferable. Actually, imagemagick features a language as well so you could probably do it using the magickwand.]