Chose file format when taking a screenshot with python
Currently there is no way, you can only save directly to a PNG.

This is caused by the way the operator works, where the options to choose the image format are only initialized when the file-selector is used.