One thing to notice is that you don't pass the output extension. The script already generates the image with .png and the CSS with .css. Within your python code you can generate sprites for a given ...
Using a spritesheet that has the details of the sprites encoded in the first line, we can use the command: hhh - If one or more non-black pixels long, the number of pixels specifies a fixed height for ...