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 ...