Extracting .png files from a .bin sprite sheet

Here's a little script I wrote to extract a whole lot of .png files from a compiled sprite sheet.

The python script reads the .bin file as binary, finds the starting header of a .png file (89504E47) and the footer (49454E44AE426082) and separates it into individual images.

This may not be the worlds best or most useful script, but it saved me several hours of copy and paste.